Display Code by Module

More
13 years 1 month ago #19576 by iamrobert
Hi,

I was wondering in flexicontent templates you could include code that would relate to whether the module is shown or not.

I know that I can make a specific class if I display if my slider position is displaying or not:
Code:
<div class="description<?php if (isset($this->item->positions['slider'])) : ?>-slider<?php endif; ?>">

But is it possible to work with the whole Joomla template - for instance in my index.php template I have a module position:
Code:
<?php if($this->countModules('right')) : ?>

If my right menu module is showing - can I call the right module and change the class:
Code:
<div class="description<?php if ($this->item->countModules['right']) : ?>-right<?php endif; ?>">

So far I haven't had any luck. Any ideas?

Thanks,

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

More
13 years 1 month ago #19579 by ggppdk
Replied by ggppdk on topic Display Code by Module
Create a new field of type "Load Module"
and insert this field in an appropriate template position.

If needed create a new position at your template files ...

Regards


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

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