Page 1 of 1

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

Posted: Wed Apr 22, 2009 3:20 pm
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.

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

Posted: Wed Apr 22, 2009 3:38 pm
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.

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

Posted: Wed Apr 22, 2009 3:42 pm
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.

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

Posted: Wed Apr 22, 2009 3:47 pm
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

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

Posted: Wed Apr 22, 2009 3:55 pm
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.

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

Posted: Wed Apr 22, 2009 4:11 pm
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

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

Posted: Wed Apr 22, 2009 5:37 pm
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.

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

Posted: Wed Apr 22, 2009 5:48 pm
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}