Talk:Jdoc statements
From Joomla! Documentation
(Difference between revisions)
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
'''Regarding <jdoc:include type="module" ... />''' | '''Regarding <jdoc:include type="module" ... />''' | ||
| − | + | It should be explained 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, | + | So, let's say I have three menu modules of type "mod_mainmenu" with the following titles: "Menu One", "Menu Two", "Menu Three". I would need these elements in the template file to get their contents: |
<source lang="html4strict"> | <source lang="html4strict"> | ||
Latest revision as of 06:35, 5 June 2009
Regarding <jdoc:include type="module" ... />
It should be explained 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, let's say I have three menu modules of type "mod_mainmenu" with the following titles: "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" />