Actions

Difference between revisions of "Show a Module on all Menu Items except selected ones"

From Joomla! Documentation

(complete rewrite for a new and more effective method.)
 
Line 4: Line 4:
 
===Example===
 
===Example===
 
1) For this example, we are going to assign a Module to every Menu Item except for our home page. We'll use the Joomla! Sample website and the rhuk_milkyway template. Here are the steps:
 
1) For this example, we are going to assign a Module to every Menu Item except for our home page. We'll use the Joomla! Sample website and the rhuk_milkyway template. Here are the steps:
Create a new template position. We'll call it "x_left". We could use an existing template position, but in some cases it might be better to create a new one.  
+
Create a new template position. We'll call it "x-left". We could use an existing template position, but in some cases it might be better to create a new one.  
  
 
2) Edit the file templates/rhuk_milkyway/templateDetails.xml and add this line after the "breadcrumb" position on line 63: <source lang="xml"><position>x-left</position></source>. This adds the new position to the template.
 
2) Edit the file templates/rhuk_milkyway/templateDetails.xml and add this line after the "breadcrumb" position on line 63: <source lang="xml"><position>x-left</position></source>. This adds the new position to the template.

Latest revision as of 05:56, 3 July 2012