0
Welcome Guest! Login
0 items Join Now

custom module chrome not visible

  • custom module chrome not visible

    Posted 13 years 2 months ago
    • Hi Guys,

      I love your framework, but adding custom module chrome gives me a lot of stress.

      I copied the custom chrome from your website and edited the index.php file with the corresponding codes. But nothing appears on my website.

      Still the "standard" module chrome is displayed and not my custom made mod_chrome

      Can you guys help me out? I use the newest version 3.1.7 with the default rt_gantry_j15 template.

      This is my mod_chrome code
      function modChrome_example($module, &$params, &$attribs)
      {
        if (!empty ($module->content)) { ?>
        <div class="examplewrapper">
        <h2><?php echo $module->title; ?></h2>
        <div class="examplecontent">
        <?php echo $module->content; ?>
        </div>
        </div>
        <?php }
      }

      And this is what i've changed in my index.php file
              
      <?php /** Begin Header **/ if ($gantry->countModules('header')) : ?>
              <div id="rt-header">
                  <div class="rt-container">
                      <?php echo $gantry->displayModules('header','standard','example'); ?>
                      <div class="clear"></div>
                  </div>
              </div>
       <?php /** End Header **/ endif; ?>
      Thanks in advance

      Wouter
    • Webdesign is more than a job, it's feeling
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: custom module chrome not visible

    Posted 13 years 2 months ago
    • I just tested this on a fresh RocketLauncher, and it worked fine. I created my new chrome function in the rt_gantry_j15/html/modules.php file, then updated the rt_gantry_j15/index.php file to use 'example' as you have shown, and the new classes where there.

      Make sure you have cleared your cache, as that could be a problem.
  • Re: custom module chrome not visible

    Posted 13 years 2 months ago
    • Very strange, I've cleared my cache from the browser and from joomla. Also disabled the gantry cache. Still nothing is happening.
    • Webdesign is more than a job, it's feeling

Time to create page: 0.039 seconds