how to- radiobutton for category & left side off on faq

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
riza
Posts: 2
Joined: Fri Dec 16, 2005 12:21 pm

how to- radiobutton for category & left side off on faq

Post by riza »

thanks a zillion for this wonderful script. will be very grateful to have some solution or workaround for some questions below

:!: instead of dropdown menu of categories in "create entry"
how can I see the names with with radio button by side of each ?

:!: how can I remove the left side bar showing category listing while viewing
the actual content or body of the faq ? I tried much with index.tpl or artikel.tpl but with no result :(


:!: can the order of questions be moved up and down or made to sort alphabetically


regards
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: how to- radiobutton for category & left side off on

Post by matteo »

riza wrote::!: instead of dropdown menu of categories in "create entry"
how can I see the names with with radio button by side of each ?
Open the file [PATH_TO_PMFINSTALL]/inc/category.php and search for the printCategoryOptions function and modify it according to your needs :wink:
riza wrote::!: how can I remove the left side bar showing category listing while viewing
the actual content or body of the faq ? I tried much with index.tpl or artikel.tpl but with no result :(
You cannot modify only the templates for this need: artikel.tpl is the template strictly for faq rendering without no relationship with index.tpl.
A first rough idea would be to open the [PATH_TO_PMFINSTALL]/index.php and to set a condition upon the setting of the showCategories key, which would be "" (empty string) in case of $_REQUEST["action"] == artikel.
riza wrote::!: can the order of questions be moved up and down or made to sort alphabetically
In the admin context or in the user one?
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
riza
Posts: 2
Joined: Fri Dec 16, 2005 12:21 pm

Post by riza »

Hello Matteo,

lots of thanks for the fast reply - that should provide quite a handful of clues :D , thanks

moving up and down in the admin context , but what the admin does should be visible to the users - just as cat.s are moved up and down.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

riza wrote:moving up and down in the admin context , but what the admin does should be visible to the users - just as cat.s are moved up and down.
Unfortunately this is not currently possible without some "big" changes into the related PMF code: Thorsten is thinking to some improvements that fit also with this request... these are under planning for PMF 1.6.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Post Reply