Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display modules based on template
Page:
1
Display modules based on template
Administrator has disabled public posting
Re: Display modules based on template
Hi Jpalu,
Try this:
Code:
$mainframe = JFactory::getApplication();
$template = $mainframe->getTemplate();
if ($template == 'protostar') return XXX;
// replace XXX with module id of module to appear ONLY on protostar template.
Note that this is only the name of the template, not the template style.
Cheers,
Stephen
Administrator has disabled public posting
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Display modules based on template
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8026
- Newest User:
- rivas48750
- Members Online:
- 1
- Guests Online:
- 145
- Online:
- rivas48750
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked