000-CMS
avatar alexonbalangue
alexonbalangue
3 Dec 2015

i assign other template than default template used
[site]/templates/[tpl-name]/html/module.php
function modChrome_NAME($module, &$params, &$attribs) {
echo '<.h1.>' . $module->title . '<./h1.>';
echo $module->content;
}
[site]/templates/[tpl-name]/index.php
<jdoc:include type="modules" name="footer8" style="NAME" />

The $module->title function not take charge.
tpl_custom
tpl_customoutput

i also edit config advanced on module not take too.
Found alone just do
[site]/templates/[tpl-name]/html/mod_custom/default.php

add
defined('_JEXEC') or die;
$headerTag = htmlspecialchars($params->get('header_tag', 'h1'));
if ($module->showtitle) { echo '<' . $headerTag . '>' . $module->title . '</' . $headerTag . '>'; }
echo $module->content;

avatar alexonbalangue alexonbalangue - open - 3 Dec 2015
avatar alexonbalangue alexonbalangue - change - 3 Dec 2015
Title
[issue] Override Module template function modChrome_NAME style="NAME"
[issue-fix found alone] Override Module template function modChrome_NAME style="NAME"
avatar elkuku
elkuku - comment - 4 Dec 2015

Hi!

This is the tracker is for the JIssues project.
Please create a new issue on Joomla CMS project tracker here:
https://github.com/joomla/joomla-cms/issues

Thank you!

avatar elkuku elkuku - change - 4 Dec 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-12-04 02:04:12
Closed_By elkuku
avatar elkuku elkuku - close - 4 Dec 2015
avatar elkuku elkuku - close - 4 Dec 2015
avatar elkuku elkuku - change - 4 Dec 2015
Labels Added: 000-CMS

Add a Comment

Login with GitHub to post a comment