module style doesn't work - Joomla! Forum - community, help and support
hey all,
i created own template following content:
i used following module in index.php: <jdoc:include type="modules" name="col1" style="ccmi" />
and put code
in here: /htdocs/joomla/templates/ccmi/html/modules.php.
however, reason module style not change. can tell me why?
regards
i created own template following content:
code: select all
<files>
<folder>css</folder>
<folder>images</folder>
<folder>js</folder>
<folder>html</folder>
<filename>index.html</filename>
<filename>index.php</filename>
<filename>template_thumbnail.png</filename>
<filename>navicon.ico</filename>
<filename>templatedetails.xml</filename>
</files>i used following module in index.php: <jdoc:include type="modules" name="col1" style="ccmi" />
and put code
code: select all
<?php
function modchrome_ccmi( $module, &$params, &$attribs ) {
if (isset( $attribs['headerlevel'] ))
{
$headerlevel = $attribs['headerlevel'];
} else {
$headerlevel = 3;
}
if (isset( $attribs['background'] ))
{
$background = $attribs['background'];
} else {
$background = 'blue';
}
echo '<div class="' .$params->get( 'moduleclass_sfx' ) .'" >';
if ($module->showtitle)
{
echo '<h' .$headerlevel .'>' .$module->title .'</h' .$headerlevel .'>';
}
echo '<div class="' .$background .'">';
echo $module->content;
echo '</div>';
echo '</div>';
}
?>in here: /htdocs/joomla/templates/ccmi/html/modules.php.
however, reason module style not change. can tell me why?
regards
i have tried codes , works. may try clear cache @ backend: site =>maintenance => clear cache
Comments
Post a Comment