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 » Wed Jun 26, 2013 9:59 am

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: 14722
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten » Wed Jun 26, 2013 6:31 pm

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 » Wed Jun 26, 2013 7:12 pm

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: 14722
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten » Wed Jun 26, 2013 7:31 pm

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 » Wed Jun 26, 2013 11:32 pm

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 » Thu Jun 27, 2013 10:06 am

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: 14722
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Categories - show all

Post by Thorsten » Thu Jun 27, 2013 5:57 pm

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 » Fri Jun 28, 2013 8:52 am

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