0
Welcome Guest! Login
0 items Join Now

need help with technozine template 1.5 and horizontal menu

  • need help with technozine template 1.5 and horizontal menu

    Posted 15 years 4 months ago
    • hello people,

      i need some help with the technozine template on joomla 1.5.

      i used the template on joomla 1.0 and i changed the horizontal menu from
      mainmenu to my own my menu i called "extern", where i linked some urls
      to other homepages.

      to do this, i simply changed the template code from this:
      <div id="horizmenu">
      <?php mosShowHorizMenu('mainmenu'); ?>
      </div>

      to this:
      <div id="horizmenu">
      <?php mosShowHorizMenu('extern'); ?>
      </div>


      now, on version 1.5, it seems to be impossible to do this also, because
      i don't understand, what i have to change in the template code :cry:

      i think i must change something in the head:
      // Configuration
       
      $menu_name          = $this->params->get("menuName", "mainmenu");       // can be any joomla menu, by default is mainmenu
       
      // menu code
      $document   = &JFactory::getDocument();
      $renderer   = $document->loadRenderer( 'module' );
      $options     = array( 'style' => "raw" );
      $module  = JModuleHelper::getModule( 'mod_mainmenu' );
      $mainnav = false; $subnav = false;                                      
      $module->params = "menutype=$menu_name\nshowAllChildren=0\nclass_sfx=top";
      $mainnav = $renderer->render( $module, $options );

      and here in the body:
      <div id="horizmenu">
      <?php echo $mainnav; ?>
      </div>


      but what do i have to change?! my menu is called "extern", may somebody help me please?
      do i have to create a module with the menu or something else? it's hard, because i just wanted
      to update my home to joomla 1.5 and now it seems to fail because of this problem...
      that would be very nice.

      thank you!
  • Re: need help with technozine template 1.5 and horizontal menu

    Posted 15 years 4 months ago
    • On Joomla 1.5, to change the template parameter, you don't need to edit any code in the index.php anymore. You can go to Extensions >> template manager >> Your template name

Time to create page: 0.071 seconds