Shape 5

Joomla Templates => Appwonder - Club => : pengisuits May 02, 2012, 04:41:01 PM



: assign different menus to mainmenu location
: pengisuits May 02, 2012, 04:41:01 PM
Is there a simple way to remove the scripting in s5_navv and make it a module position I can assign menus to? Let me explain...

We just bought your beautiful template and are setting up our site: http://74.52.60.162/~penguins/index.php

Due to the way we are planning to use the navigation we need to assign different menus to the mainmenu position for each page.

If you go to: http://74.52.60.162/~penguins/index.php/home-3#s5_bottom_row2_area1 you can see the module "Books (pages)" with our page navigation (I currently only have 2 set up) on each page we want the mainmenu to show only the scrolling links for that page. So... for the About Page I would like the mainmenu to be replaced with "Main Menu - About Us" menu you can see in the red section here: http://74.52.60.162/~penguins/index.php/about-us-2

I hope this is not too confusing! Thanks for your help on this!


: Re: assign different menus to mainmenu location
: pengisuits May 03, 2012, 01:55:55 PM
Can someone help me with this, please?


: Re: assign different menus to mainmenu location
: jonahh May 04, 2012, 12:00:55 PM
Hello,

Yes you could do this but it could require custom coding, you'd need to open up the index.php file and look for:


      <?php mosShowListMenu($menu_name);   ?>               
         <?php if ($s5_jsmenu  == "s5") { ?>
            <?php if ($s5_menu  == "1") { ?>
               <script type="text/javascript" src="<?php echo $s5_directory_path ?>/js/s5_drop_in_no_moo_menu.js"></script>                                                      
            <?php } ?>
            <?php if ($s5_menu  == "2") { ?>
               <script type="text/javascript" src="<?php echo $s5_directory_path ?>/js/s5_fading_no_moo_menu.js"></script>                                                      
            <?php } ?>   
            <?php if ($s5_menu  == "3") { ?>
               <script type="text/javascript" src="<?php echo $s5_directory_path ?>/js/s5_scroll_down_no_moo_menu.js"></script>                                                      
            <?php } ?>   
         <?php } ?>   
         
         <script type="text/javascript" src="<?php echo $s5_directory_path ?>/js/s5_menu_active_and_parent_links.js"></script>   
         

and replace with a module position


: Re: assign different menus to mainmenu location
: pengisuits May 07, 2012, 08:04:51 AM
That is what I thought, just not sure how to add a module position. If you could tell me, that would be great.  ;D
Is it the same as in Joomla 1.6 as explained here: http://docs.joomla.org/How_do_you_add_a_new_module_position%3F


: Re: assign different menus to mainmenu location
: jonahh May 07, 2012, 01:13:45 PM
Add it with the following:

<?php s5_module_call('top_row1_3','round_box'); ?>

Just replace "top_row1_3" with your new module position name