How to show module titles when using with Pages? #786
-
Hi, Wanted to show module title as set in module settings as when using with Pages. Tried both
and
But it does not show module title in o/p, shows only module content, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
1. paramsThe The right syntax would be: <ktml:modules position="pages-footer-2" showtitle="1"> 2. showtitleA You can pass the info to chrome in as a style attribute, for example: <ktml:modules position="position-2" style="xhtml"> This will render the title. This works in the same way as the <jdoc:include type="modules" name="position-2" style="xhtml" /> The additional attributes you add to There is no way right now to override the I don't think it makes much sense to make that possiblity, the only module property that this could works for is |
Beta Was this translation helpful? Give feedback.
1. params
The
<ktml:modules ... >
tag doesn’t supportparams=“<?= json([‘showtitle’ => 1], true); ?>”
Params only exists for a module and are defined when you instantiate the module.The right syntax would be:
2. showtitle
A
title
in Joomla is not rendered by the module. It’s rendered by the module chrome. See: https://github.com/joomla/joomla-cms/blob/staging/templates/system/html/modules.phpYou can pass the info to chrome in as a style attribute, for example:
This will render the title. This works in the same way as the
jdoc:include
counterpart in Joomla.