[SOLVED - IMPOSSIBLE] set showinmenu in template

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
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

[SOLVED - IMPOSSIBLE] set showinmenu in template

Post by manuel »

Dear All,

I'm using the latest CMS Made Simple 1.5.4 "Carolina".

The "showinmenu" default value is defined in Site Admin » Page Defaults » Show in Menu
I was hoping there is a way to define this value in the page templates.

ex:

1. The default setting for all pages is "show in menu: yes"
When the user creates a new page, this value will automatically be set to "yes"

2. The user creates a new page AND selects a different template.
By selecting this template the value for "show in menu" is "no" (not the general setting, just for this single page)

So the question is... can I specify the "showinmenu" value in the page templates by using some smarty code?

I found only one reference to this in a completely unrelated thread:

Code: Select all

array_push($ret,array(lang('showinmenu'),'<input type="checkbox" name="showinmenu"'.($this->mShowInMenu?' checked="true"':'')));
http://forum.cmsmadesimple.org/index.ph ... #msg103713

Greetings,
Manuel
Last edited by manuel on Wed Oct 21, 2009 8:58 pm, edited 1 time in total.
Do you like your open source cms? Buy from the CMSMS partners || Donate
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: set showinmenu in template

Post by Dr.CSS »

No you can't set the template to tell it whether to show in menu or not, just in the page options, unless you make a user group and set it so no pages they make will show in menu...
User avatar
manuel
Power Poster
Power Poster
Posts: 354
Joined: Fri Nov 30, 2007 9:15 am

Re: set showinmenu in template

Post by manuel »

Dear Dr.CSS,

Thanks, I appreciate your reply!

Greetings,
Manuel
Do you like your open source cms? Buy from the CMSMS partners || Donate
Post Reply

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