Actions

Talk

Difference between revisions of "Jdoc statements"

From Joomla! Documentation

(New page: Regarding type="module" Would it be the right place to explain that the name attribute will take the value from the type column in the module manager list by cutting off from the start th...)
 
Line 1: Line 1:
Regarding type="module"
+
'''Regarding <jdoc:include type="module" ... />'''
  
 
Would it be the right place to explain that the name attribute will take the value from the type column in the module manager list by cutting off from the start the letters "mod_". And that one must also give the title attribute a value - otherwise rendered content will be empty.
 
Would it be the right place to explain that the name attribute will take the value from the type column in the module manager list by cutting off from the start the letters "mod_". And that one must also give the title attribute a value - otherwise rendered content will be empty.
Line 5: Line 5:
 
So, if I had three menu modules (mod_mainmenu) with the following module names: "Menu One", "Menu Two", "Menu Three". I would need these elements in the template file to get their contents:
 
So, if I had three menu modules (mod_mainmenu) with the following module names: "Menu One", "Menu Two", "Menu Three". I would need these elements in the template file to get their contents:
  
<source>
+
<source lang="html4strict">
 
<jdoc:include type="module" name="mainmenu" title="Menu One" />
 
<jdoc:include type="module" name="mainmenu" title="Menu One" />
 
<jdoc:include type="module" name="mainmenu" title="Menu Two" />
 
<jdoc:include type="module" name="mainmenu" title="Menu Two" />
 
<jdoc:include type="module" name="mainmenu" title="Menu Three" />
 
<jdoc:include type="module" name="mainmenu" title="Menu Three" />
 
</source>
 
</source>

Revision as of 08:19, 18 November 2008

Regarding <jdoc:include type="module" ... />

Would it be the right place to explain that the name attribute will take the value from the type column in the module manager list by cutting off from the start the letters "mod_". And that one must also give the title attribute a value - otherwise rendered content will be empty.

So, if I had three menu modules (mod_mainmenu) with the following module names: "Menu One", "Menu Two", "Menu Three". I would need these elements in the template file to get their contents:

<jdoc:include type="module" name="mainmenu" title="Menu One" />
<jdoc:include type="module" name="mainmenu" title="Menu Two" />
<jdoc:include type="module" name="mainmenu" title="Menu Three" />