Talk

Difference between revisions of "Jdoc statements"

From Joomla! Documentation

Line 10: Line 10:
 
<jdoc:include type="module" name="mainmenu" title="Menu Three" />
 
<jdoc:include type="module" name="mainmenu" title="Menu Three" />
 
</source>
 
</source>
 +
 +
== jdoc:installation removal ==
 +
 +
Oops, missed that in J2.5, but verified and found it. I'll have to wait a little longer to remove it. [[User:Sovainfo|Sovainfo]] ([[User talk:Sovainfo|talk]]) 14:30, 25 September 2013 (CDT)

Revision as of 14:30, 25 September 2013

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" />

jdoc:installation removal[edit]

Oops, missed that in J2.5, but verified and found it. I'll have to wait a little longer to remove it. Sovainfo (talk) 14:30, 25 September 2013 (CDT)