4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: albertpr9 on November 12, 2007, 12:27:33 PM

Title: Display Category ID
Post by: albertpr9 on November 12, 2007, 12:27:33 PM
I'm trying to use {cat_id} tag to display the gategory ID on the Category Page along with the Category Description... 

What I need is to have the same ID that's on the Address bar, displaying on the page. ex (../4images/categories.php?cat_id=12) from this I would only like to display the number "12".  I know it uses cat_id on the functions.php, but it's not working on templates...

anyone know why?



Title: Re: Display Category ID
Post by: thunderstrike on November 12, 2007, 01:35:30 PM
In categories.php file,

find:

Quote
"cat_name" => format_text($cat_cache[$cat_id]['cat_name'], 2),

add before:

Code: [Select]
"cat_id" => $cat_cache[$cat_id]['cat_id'],

Use {cat_id} in categories.html file.
Title: Re: Display Category ID
Post by: albertpr9 on November 12, 2007, 03:46:44 PM
PERFECT!!!!!!! : )

Thanks again thunderstrike!