Keyword

[SOLVED] Hide unused categories in front-end view

  • Robert Peterson
  • Robert Peterson's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #121995 by Robert Peterson
Replied by Robert Peterson on topic Re: Hide unused categories in front-end view
No JS error, no.

Also, I'm not sure I understand -- I used the same path as you described. "[MYTEMPLATEPATH]" is just what I put in instead of the full path in my site.

Any guidance would be appreciated! Thank you again!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #121996 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Hide unused categories in front-end view
The paths look indentical but it should be

/com_k2/default/ and not /com_k2/templates/default/

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Robert Peterson
  • Robert Peterson's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #121997 by Robert Peterson
Replied by Robert Peterson on topic Re: Hide unused categories in front-end view
Krikor -- that doesn't quite make sense. I've put all of my K2 template overrides into that folder, and they're working fine, including the override for itemform.php. (I extensively customized the item submission form, and all of my other changes are working fine -- just not this code.)

Please Log in or Create an account to join the conversation.

  • Robert Peterson
  • Robert Peterson's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #121998 by Robert Peterson
Replied by Robert Peterson on topic Re: Hide unused categories in front-end view
Krikor, I've got a working solution here!

In this file:

[MYTEMPLATEFOLDER]/html/com_k2/templates/default/itemform.php

Add this code:
<script type="text/javascript" charset="utf-8">
    jQuery(document).ready( function () {
        jQuery("option:disabled").remove();
    });
</script>

Give it a go on your end to confirm. Thanks again for all your time and trouble!!!!!

:cheer: :cheer: :cheer:

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #121999 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Hide unused categories in front-end view
You 're welcome Robert :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum