Categories - show all

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Categories - show all

Post by tomperys »

Hi,

I'm sorry but I could not find it anywhere - can I expand (show) all categories with subcategories? Because in default there are only main categories visible and subcategories are hidden. You can expand them by clicking on the main category but just for the one. So my question is if I can somehow make by default that subcategories will be visible for ALL main categorys?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten »

Hi,

just click on "all categories": http://moss.demo.phpmyfaq.de/index.php? ... ction=show

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Categories - show all

Post by tomperys »

Thanks,
but that will show just all "main" categories .... but is there a way (how to make it default - sou it will load with the page without clicking) how to expand the SUBCATEGORIES ??? Either in one main category that I want to have expanded by defaulf all the time..... or for all main categories?

T.
Thorsten wrote:Hi,

just click on "all categories": http://moss.demo.phpmyfaq.de/index.php? ... ction=show

bye
Thorsten
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten »

Hi,

it shows all expanded categories. Or do you mean on the left menu?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Categories - show all

Post by tomperys »

Yes, I mean to expand the subcategories in left menu
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Categories - show all

Post by tomperys »

Like this (all of them will be visible without need to click on that main category...):
3.jpg
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten »

Hi,

open inc/PMF/Helper/Category.php at line 60 and add this code:

Code: Select all

        $this->Category->expandAll();
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tomperys
Posts: 67
Joined: Tue May 14, 2013 10:17 am

Re: Categories - show all

Post by tomperys »

Thanks a lot!! It works.
Can I just ask last question - is there too a way to expand just one exact category?
Thorsten wrote:Hi,

open inc/PMF/Helper/Category.php at line 60 and add this code:

Code: Select all

        $this->Category->expandAll();
bye
Thorsten
Post Reply