New Dynamic YouTube Gallery - Embed YouTube Playlist, Channel, Live Stream in minutes. Read More

Sub Categories

  • tim
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 2

Sub Categories was created by tim

When adding a category (that has sub categories) to a menu item, is there a way to remove the message "Item Not Found" from the root category?
13 years 3 weeks ago #2758

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

  • Posts: 2518
  • Thank you received: 1463

Replied by Administrator on topic Re: Sub Categories

This will happen while your main category doesn't have any videos. You can remove the text by editing the core file.

1. Open {root} / components / com_allvideoshare / views / category / tmpl / default.php

2. Search and delet the line
if(!count($videos)) echo JText::_('ITEM_NOT_FOUND');
Hope, this fixed your issue !!!
Last edit: 13 years 3 weeks ago by Administrator.
13 years 3 weeks ago #2759

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

  • tim
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 2

Replied by tim on topic Re: Sub Categories

Worked great! Thanks
13 years 2 weeks ago #2787

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

  • Kenneth Fribert
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 27
  • Thank you received: 5

Replied by Kenneth Fribert on topic Re: Sub Categories

Or even better, use a language override, just search for "Item not found", constant is called ITEM_NOT_FOUND
Best regards
Fribse

Dykkerklubben Dannebroge www.dkdb.dk
We're a volunteer driven diving club in Mosede, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: Administrator
11 years 5 months ago #6830

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

  • Posts: 11
  • Thank you received: 1

Replied by leo batt on topic Re: Sub Categories

I have the same problem, but in my default.php file this line:
if(!count($videos)) echo JText::_('ITEM_NOT_FOUND');
there isn't.
There is this:
if(!count($categories)) echo JText::_('ITEM_NOT_FOUND');
I have deleted it, but the message "Item not found" remained.
Why? Help me.
Thanks
11 years 1 month ago #7182

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

  • Posts: 2518
  • Thank you received: 1463

Replied by Administrator on topic Re: Sub Categories

I doubt you're editing the dafault.php in 'categories' view. Kindly do the same in 'category' view.

{root} / components / com_allvideoshare / views / category / tmpl / default.php
11 years 1 month ago #7184

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

Time to create page: 0.098 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies