• 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  [ 5 posts ] 
Author Message
 Post subject: [SOLVED!] (See post 4 ) Menus: Stopping and Starting
PostPosted: Mon Aug 27, 2012 2:17 am 
Offline
Forum Members
Forum Members

Joined: Sun Oct 28, 2007 4:14 am
Posts: 137
Location: Australia
I understand nodes and hierarchy, and also how to specify particular menu items by listing them by name. But is there a way where I could do this:

Menu [/parameter]
Some other code: maybe a graphic
Menu [/parameter: continue]

where the parameter would begin listing pages for say 10 items and then stop. And then at the second parameter begin at menu item 11.

Like you can do with news items:
Code:
{news category='SA' summarytemplate='Front_Page_Summary' detailpage='Justice_Detail' detailpage='news-item-details' number='5' start='1'}

note: start='1'
then a picture, then...
Code:
{news category='SA' summarytemplate='Front_Page_Summary' detailpage='Justice_Detail' detailpage='news-item-details' number='20' start='5'}

note: start='5'

Andrew


Last edited by Andrew Prior on Sat Sep 08, 2012 1:10 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Menus: Stopping and Starting
PostPosted: Mon Aug 27, 2012 5:44 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11821
Location: Arizona
Sounds like you want to add an image at certain points in the menu, the only way I know how to do this is to use the Image select in the options tab when editing/making a page, make a new content/page but not of Content type, sectionheader maybe, select an image for that 'page' set it to be the 11th page...

_________________
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: Menus: Stopping and Starting
PostPosted: Mon Aug 27, 2012 9:37 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Aug 05, 2011 3:43 pm
Posts: 48
Location: London, United Kingdom
You could definitely do something like this using smarty sections:
http://www.smarty.net/docsv2/en/language.function.section.tpl

I would assign a start and max variable before calling the menu tag. Then the image you would like followed by a rewrite of the start and max variables with a new menu tag after...and repeat.

Some pseudo-code:

Code:
{assign var="start" value=1}
{assign var="max" value=5}
{Menu template="imageMenu"}
<img alt="" title="" src="" />

_________________
~ Life is like water, every movement you make changes the way it flows ~


Top
 Profile  
 
 Post subject: Re: Menus: Stopping and Starting
PostPosted: Sat Sep 08, 2012 1:08 pm 
Offline
Forum Members
Forum Members

Joined: Sun Oct 28, 2007 4:14 am
Posts: 137
Location: Australia
Dr CSS, thankyou. Your showed me the way although it nearly killed me getting there, being ignorant :-)

I made a copy of the simple_menu.tpl in the menu manager.

In that I changed this code

Code:
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}</span>


I removed the node->menu text and added the code which refers to the image that you set in the page options.

Code:
{elseif $node->type == 'sectionheader'}
<li class="sectionheader"><span><img src="{$node->image}"  /></span>


I then made a copy of my template, which affects very many pages which I did not want to change and changed the menu to my new adjusted template to test it.

When it was ok I changed the section I wanted to contain images to the new template and added two pages which are section headers instead of being content pages.

You can see this at http://onemansweb.org/theology/a-difficult-day-of-the-lord---mark-13-24-37/spiritual-diahorrea---mark-7-1-26.html for example. (Note that the large image below the menu is not part of the menu code. The two small images of the windmill and the church are produced by the menu template.)

Thankyou very much for your assistance. Andrew Prior


Top
 Profile  
 
 Post subject: Re: [SOLVED!] (See post 4 ) Menus: Stopping and Starting
PostPosted: Sat Sep 08, 2012 10:27 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11821
Location: Arizona
Glad you got it, you might want to check it in html validator and for the menu images you do an alt...

<img src="{$node->image}" alt='{$node->menutext}' />

_________________
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  [ 5 posts ] 

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:  
A2 Hosting