getting the current category for an article

More
10 years 11 months ago #48472 by rottenberg
Hello,
The Core variable 'categories' gives the category names which the article is connected.

Is it possible to know which is the current category ?

Ex article has main category : A and secondary categories : B,C and D.

I display the category 'D' page. I select an article. Is it possible to get as current category :'D'.

I want to display on the page a Universal module (option select) to display the title of all other articles connected to this category.


Thank you for advices

best regards

Michel

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

More
10 years 11 months ago #48473 by micker
yes you can use current category scope
and display only title and like ..
easy

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.

More
10 years 11 months ago #48477 by ggppdk
Hello

you may try:
Code:
global $globalcats; echo $globalcats[$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
10 years 11 months ago #48480 by rottenberg
thank you very much.

I have update the template corresponding to the article type.

A question :
If I update the /tmpl_common/item_layout/modular_html5.php to get the info in all template, shall this file (modular_html5.php) be erased and replaced by a new one when upgrading FC) ?

If true I shall loose the customization.

thank you for advices

best regards

Michel

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.332 seconds
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
Save