0
Welcome Guest! Login
0 items Join Now

(Joomla 1.7) Module Suffix issue

  • (Joomla 1.7) Module Suffix issue

    Posted 13 years 4 months ago
    • I'm running RT-Camber on Joomla 1.7..
      I'm using a custom styled page-top (using custom HTML modules) and am having issues with adding Module Class suffixes ; They are sometimes not showing up in the code.
      I am adding the custom classes in a custom CSS stylesheet, and on certain modules they work...
      But on modules such as the RokAjaxSearch and RokNavMenu modules, when I add in the custom class, it doesn't force the style.
      The class simply doesn't show up in the code at all, forcing me to create generalised custom CSS for that entry (Causing problems with other modules)

      Is this something anyone can help me with?
  • Re: (Joomla 1.7) Module Suffix issue

    Posted 13 years 3 months ago
    • Did you ever figure this issue out?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: (Joomla 1.7) Module Suffix issue

    Posted 13 years 3 months ago
    • simple answer: not all mod_chromes are rendering the modsuffix:

      see this file

      joomla-root/templates/rt_camber/html/modules.php

      only the mod_chromes with
      <?php echo $params->get('moduleclass_sfx'); ?>
      in it render it.

      Wich mod_chrome is used can be checked in the index.php of your template.

      Just as a code example from the index.php ...
      <?php echo $gantry->displayModules('navigation','standard','menu'); ?>

      shows that the position "navigation" is using the 'menu"-mod_chrome
      wich is not rendering the modsuffix ...

      code from modules.php:
      function modChrome_menu($module, &$params, &$attribs)
      {
          if (!empty ($module->content)) : ?>
          <div class="rt-block menu-block">
              <?php echo $module->content; ?>
          </div>
          <?php endif;
      }
  • Re: (Joomla 1.7) Module Suffix issue

    Posted 13 years 3 months ago
    • Ah nice.
      Thanks guys. I'll have a look when I get a chance and will post my results up.
      :)

Time to create page: 0.060 seconds