Theme option: selecting a category?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Theme option: selecting a category?

Post by yellowled »

This is something for our PHP wizards (Garvin? Anyone?) to chew on.

Here's what I'd like to do: Users are supposed to select a particular category in the theme options. Some entries from that selected category will then be displayed in a particular part of the content area.

(I have the smarty part for that already down, so this is all about how to do it in config.inc.php, I guess.)

Here's how I'd like to do it: Users get a dropdown box in the theme options listing all names of categories available in the blog. They select a particular category, and the dropdown box/function returns that category's id to use in a .tpl file.

(I can take it from there myself, I think. I "only" need some way to translate a category name into an id. Of course I could make users enter the desired category's id in an input field in the theme options, but this would be much more user-friendly.)

Is is possible, and if so: how? :-)

Thanks in advance,
YL
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Post by Don Chambers »

I sent you an email this morning with the answer.... but see this post:

http://board.s9y.org/viewtopic.php?t=11764
=Don=
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Don Chambers wrote:I sent you an email this morning with the answer.... but see this post:
Funny. After all this time, I still get confused by this time zone thing :wink:

Thanks again!

YL
Post Reply