Solved: How to display FLEXIcontent template values in Joomla Template?

More
3 years 9 months ago - 3 years 9 months ago #78997 by iamrobert
Hi,

Could you help me?

I'm trying to speed up my template - and I'm looking to put an item.xml value in the Joomla Template (/templates/xxx/index.php)? Is it possible?




I've explored these 2 help items - but I'm unable to get them to work:

I could use a field if its not possible?
Last edit: 3 years 9 months ago by iamrobert.

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

More
3 years 9 months ago - 3 years 9 months ago #78998 by iamrobert
Solved:

item.php
Code:
$jsFile = ''; $jsFile = $this->params->get('js_file'); $GLOBALS['jsURL'] = $jsFile;


index.php Joomla Template:
Code:
//JS FILE $jsURL = ''; if(isset($GLOBALS['jsURL'])) { if ( $developerMode == 1 ) { $jsURL = '<script src="'.$tpath.'/js/pages/'.$GLOBALS['jsURL'].'.js"></script>'; } else { $jsURL = '<script src="'.$tpath.'/js/pages/'.$GLOBALS['jsURL'].'-dist.js"></script>'; } }
Last edit: 3 years 9 months ago by iamrobert.

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

More
3 years 9 months ago #79002 by micker
thanks for solution

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.265 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