Show Catégory name in item view.

More
13 years 3 months ago #17180 by chessman
Hello all,

I can't remember how to get the Category name of a content while displaying a unique content (show element in menu) :?

Do someone have an idea ?

Thanks a lot for your answers :D

www.christophehagnere.fr <= entièrement réalisé avec FLEXIcontent
www.joomla.fr <= Co-administrateur

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #17182 by ggppdk
You mean inside template file item.php of items view?

Use:
Code:
global $globalcats; echo $globalcats[$this->item->catid]->title;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #17208 by chessman
Yes, you got it.

I wanted to change the item.php and your code works like a charm.

Thanks a lot for your help.

www.christophehagnere.fr <= entièrement réalisé avec FLEXIcontent
www.joomla.fr <= Co-administrateur

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #17221 by micker
lol
if i can do this .. ;)
"can you edit your title post and add [solved]"
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.991 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline