• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Building a menu with images and javascript
PostPosted: Thu Jun 28, 2012 6:44 pm 
Offline
Forum Members
Forum Members

Joined: Tue Aug 02, 2011 5:00 am
Posts: 34
Using
Code:
{menu template="Horizontal Menu" start_element="1" show_root_siblings="1" number_of_levels="1"}


takes away all child menus, changing the number of levels to 3 brings them back, but still have the remaining links in white below the header.

Here's a rundown of my hierarchy:
Self Reliance -> has children
Water and Food -> has children
Warmth and Shelter -> has children
Financial Stability -> has children
Emergency Kits -> has children
Health and First Aid -> has children
Privacy Policy
Legal
About Us
Contact Us
Blog
Home

I want the first six pages with children to appear as image links in the header, and have a drop down menu for the child links.
The next six links appear in a secondary menu at the bottom under the copyright. I was able to set up the secondary menu using excludeprefix (and omitted the first six pages) since none of those pages have child links. What I'm looking for is a menu parameter or code to change in the menu template to limit the number of links in that top menu to the first 6, and still allow their child links. Hopefully this makes sense.


Top
 Profile  
 
 Post subject: Re: Building a menu with images and javascript
PostPosted: Sun Jul 01, 2012 12:57 am 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11866
Location: Arizona
Set the ones you don't want in the top menu to not show in menu then in footer or wherever else you want them use items='page-alias,page_alias'....

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Building a menu with images and javascript [Solved]
PostPosted: Sun Jul 01, 2012 3:44 am 
Offline
Forum Members
Forum Members

Joined: Tue Aug 02, 2011 5:00 am
Posts: 34
Thank you, that solution works-no more extra whitespace at the top, and the submenus are still intact-Thanks again!!


Top
 Profile  
 
 Post subject: Re: Building a menu with images and javascript [Solved]
PostPosted: Sat Jul 07, 2012 2:43 am 
Offline
Forum Members
Forum Members

Joined: Tue Aug 02, 2011 5:00 am
Posts: 34
FYI, this code looks great in Firefox, but in IE 8 my submenus came up as broken images. Changing the code in the menu template to the following fixed it:
Code:
{if $node->image == true}<span class="img"><img src="{$node->image}" alt="{$node->menutext}" border="0" /></span>{else}{$node->menutext}{/if}


Top
 Profile  
 
 Post subject: Re: Building a menu with images and javascript
PostPosted: Sun Jul 08, 2012 8:17 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11866
Location: Arizona
I think the code changed in the 1.10.* series, thanks for the new code...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Arvixe - A CMSMS Partner