Retrieve the template name of main Item/Article

More
11 years 11 months ago #38250 by Ibehem
Hello,

How can I retrieve (in PHP) the flexicontent template name of the main article? I would like to create a template of the mod_flexicontent to display the template name of the article (or to act differently depending of the template)

Thank you,

Eric

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

More
11 years 11 months ago #38255 by ggppdk
hhh,

calculation of template name is a complex to include rare cases

effectively you need a variable to get it inside the template, just the component is rendered after the module are rendered,

no quick answer here,

it can be done with 2-3 of SQL queries and some PHP code


-- 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
11 years 11 months ago #38263 by Ibehem
Thanks, The category level (in the tree) would be the same level of complexity?

(just to find a efficient way to achieve what I need)

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.952 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