module style doesn't work - Joomla! Forum - community, help and support


hey all,

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support