[SOLVED] Icon Next To Menu Section & Menu Spread Across Multiple Pages?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
shane8960
New Member
New Member
Posts: 5
Joined: Wed Apr 22, 2009 3:11 pm

[SOLVED] Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by shane8960 »

Hi All,

I dont know if this is the right section but looks about the most relevant place.

Basically I have a layout like this:

SECTION 1
SECTION 2
- SUB SECTION 2.1
- SUB SECTION 2.2
- - SUB SECTION 2.2.1
- - SUB SECTION 2.2.2
- - SUB SECTION 2.2.3
- - SUB SECTION 2.2.4
- - SUB SECTION 2.2.5
- - SUB SECTION 2.2.6
- SUB SECTION 2.3
SECTION 3

For each of those listings which are 2.2.X, I would like to have a flag in the listing which would tell CMSMS whether to just display the listing name, or if it was a page of content and can be clicked on? Any ideas how I would go about that?

Also the 2.2.X section can, and will have loads of listings (portfolio kind of listings), but I would like to restrict the amount of listings per page - so say 15 on the first page, with a NEXT/PREVIOUS at the bottom. Is this possible? I have basic PHP/HTML/CSS knowledge but have never modified a CMS before (besides a few quick CSS changes).

Thanks in advance for any help.
Last edited by shane8960 on Wed Apr 22, 2009 5:37 pm, edited 1 time in total.
shane8960
New Member
New Member
Posts: 5
Joined: Wed Apr 22, 2009 3:11 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by shane8960 »

I've been having a bit more of a look into this and think that if I changed the content type to something other than content and then modify the menu template, so that if the content type is not content it shows the menu name, but not a link.

The only thing is I would need to rename or add content types? Is that possible without causing problems?

Splitting the menu is no longer a problem, but would still be good if I could do it.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by tyman00 »

Check out the Menu Manager help. It will show you how to target a specific level in navigation.

With that information you should be able to do an if clause in smarty that checks to see if it is 3rd level. If it is, display this image.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
shane8960
New Member
New Member
Posts: 5
Joined: Wed Apr 22, 2009 3:11 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by shane8960 »

tyman00 wrote: Check out the Menu Manager help. It will show you how to target a specific level in navigation.

With that information you should be able to do an if clause in smarty that checks to see if it is 3rd level. If it is, display this image.
Sorry, appears I wasnt clear enough.

What I want is something like this (using the smiley as an example of the image I would want to use)

:) 2.2.1        <-Links through to 2.2.1 page
2.2.2           <-Doesnt do anything just lists the page title
:) 2.2.3         <-Links through to 2.2.3 page
:) 2.2.4         <-Links through to 2.2.4 page
2.2.5           <-Doesnt do anything just lists the page title
shane8960
New Member
New Member
Posts: 5
Joined: Wed Apr 22, 2009 3:11 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by shane8960 »

Image

Thats the kind of thing I want, but rather than folders and files, they would all be bottom level (so files in that example), but I would only want the page title for some of them, and then for others I would want the user to be able to click through to the full page.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by tyman00 »

You could have been a little more precise with your needs initially, but I still understood you and I still stand by my response. You have to modify your Menu template in Menu Manager.

You will need to do a smarty if clause that checks to see the level of that specific menu item. If it is X.X.XX then it would display the image.

Read the help for the Menu Manager and checkout this link: http://themes.cmsmadesimple.org/Howto/m ... tions.html
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
shane8960
New Member
New Member
Posts: 5
Joined: Wed Apr 22, 2009 3:11 pm

Re: Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by shane8960 »

I dont want to show the image next to all the listings in that section. I've thought of a different way around it though so not to worry.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: [SOLVED] Icon Next To Menu Section & Menu Spread Across Multiple Pages?

Post by tyman00 »

That is what I am telling you. You can do that. Though I am not going to do it for you. A little research and reading is all it will take. Read the help for Menu Manager and it will become clear.

It will go something like this (this exact syntax will not work, it's just the logic)

{if $item->level = 3}{/if}
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Post Reply

Return to “Layout and Design (CSS & HTML)”