Forum Support

Shape 5
May 11, 2021, 03:28:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: assign different menus to mainmenu location  (Read 333 times)
pengisuits
Jr. Member
**
Offline Offline

Posts: 31



« on: 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!
Logged
pengisuits
Jr. Member
**
Offline Offline

Posts: 31



« Reply #1 on: May 03, 2012, 01:55:55 PM »

Can someone help me with this, please?
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #2 on: 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
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
pengisuits
Jr. Member
**
Offline Offline

Posts: 31



« Reply #3 on: 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.  Grin
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
« Last Edit: May 07, 2012, 08:16:54 AM by pengisuits » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #4 on: 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
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.