List FAQ's from one category on index.php

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rms
Posts: 2
Joined: Wed Jun 23, 2004 10:21 am

List FAQ's from one category on index.php

Post by rms »

Hi, this may already be answered, but I don't understand german, so...

I want to have all FAQ's from one category listed in a box on the frontpage of my support-section (index.php in phpMyFAQ).
I have added the following in index.php:

Code: Select all

"writeThemes" => printThemes($rubrik),
in the variables list.

Further I have added the following new section in index.php:

Code: Select all

/* Übergebene Variablen überprüfen */
if (isset($_REQUEST["rubrik"]) && checkIntVar($_REQUEST["rubrik"]) == TRUE) {
	$rubrik = $_REQUEST["rubrik"];
	}
This works, and list out the categories when I'm browsing them, just like the anzeigen.php does. But I want to have the rubrik 004 to show all the time, regardless of where I am on the site...
Not that steady in php I'm afraid.. :)
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it should work, when you write the following:

Code: Select all

"writeThemes" => printThemes("004"),
I hope, this is that you meant.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rms
Posts: 2
Joined: Wed Jun 23, 2004 10:21 am

Post by rms »

Exactly what I ment!! Great, thanks!

Solutions are often easyer then one thinks :wink:
Thorsten
Posts: 15741
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Good. :-)

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