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 » Sun Dec 09, 2018 5:28 pm

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

Re: Want to show viewTree down to the FAQ level

Post by Thorsten » Sun Dec 09, 2018 6:45 pm

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 » Sun Dec 09, 2018 6:54 pm

Correct. I want to show everything!

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

Re: Want to show viewTree down to the FAQ level

Post by Thorsten » Sun Dec 09, 2018 6:56 pm

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 » Sun Dec 09, 2018 7:01 pm

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 » Sun Dec 09, 2018 7:16 pm

OK, I see. I modified ./inc/PMF/Helper/Faq.php to taste. Thanks for the pointer!

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

Re: Want to show viewTree down to the FAQ level

Post by Thorsten » Mon Dec 10, 2018 9:08 am

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 » Tue Dec 11, 2018 2:54 pm

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

Re: Want to show viewTree down to the FAQ level

Post by Thorsten » Tue Dec 11, 2018 9:37 pm

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