Want to show viewTree down to the FAQ level

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Want to show viewTree down to the FAQ level

Post by swguy »

I'd like to show

Level 1 Category
Level 2 Category
FAQ 1
FAQ 2
etc.

but it seems that index.php?action=show stops at the lowest category level and doesn't descend all the way to the FAQs. Is there a way around this?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Want to show viewTree down to the FAQ level

Post by Thorsten »

Hi,

so you want a page with all categories and all FAQs?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Want to show viewTree down to the FAQ level

Post by swguy »

Correct. I want to show everything!
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Want to show viewTree down to the FAQ level

Post by Thorsten »

Hi,

did you see the page overview? (link is ?action=overview)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Want to show viewTree down to the FAQ level

Post by swguy »

This is good but I don't want to show all the page content - just links to each page.
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Want to show viewTree down to the FAQ level

Post by swguy »

OK, I see. I modified ./inc/PMF/Helper/Faq.php to taste. Thanks for the pointer!
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Want to show viewTree down to the FAQ level

Post by Thorsten »

Hi,

if you want to share or contribute your addition, please create a PR on Github. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
swguy
Posts: 16
Joined: Sun Dec 09, 2018 2:38 am
Contact:

Re: Want to show viewTree down to the FAQ level

Post by swguy »

Good idea - I could give it a new name so it would be totally optional for those who wanted it.

Are you still taking PRs for 2.9?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Want to show viewTree down to the FAQ level

Post by Thorsten »

Hi,

usually not, only bugfixes. Would be porting the feature to 3.0 a big issue?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply