External parameters in content/menu links

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Zdunek
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 10, 2010 11:15 am

External parameters in content/menu links

Post by Zdunek »

Hello

I try create external parameters in menu. I like to have external content(content block or something like thad) in sites/pages, and I want to have access to this external elements in menu/menu templates.
From what I should start?

Sorry for my english. If it's bad category, please move this topic to other category.

Best regards
Zdunek
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: External parameters in content/menu links

Post by Dr.CSS »

The menu manager just looks thru your Content > Pages and makes an UL LI of the pages there...

There are a few things that can be pulled into it and a list of them is in the Help, like $node->id -- Content ID...
Zdunek
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 10, 2010 11:15 am

Re: External parameters in content/menu links

Post by Zdunek »

Ok, but i must have for example 10 new values in content and i must have access to this values in menu(menu template).

And so I have to do is to make it accessible to the layman/laic.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: External parameters in content/menu links

Post by Dr.CSS »

You most likely will need to give a more detailed example of what you are trying to do, examples of it on another site helps...
Zdunek
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 10, 2010 11:15 am

Re: External parameters in content/menu links

Post by Zdunek »

Dr.CSS wrote:You most likely will need to give a more detailed example of what you are trying to do, examples of it on another site helps...
Im trying do somethink like that(website in polish)
http://orlex.pl/oferta/9/reda/mieszkania.html
When we click link "pokaż" we have
http://orlex.pl/oferta/9/reda/mieszkania/147.html

And i like to configure, create system who can creating this table and subsites for table/menu table.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: External parameters in content/menu links

Post by Dr.CSS »

That would be a module like Products, not a normal pages menu...
Zdunek
Forum Members
Forum Members
Posts: 13
Joined: Tue Aug 10, 2010 11:15 am

Re: External parameters in content/menu links

Post by Zdunek »

Dr.CSS wrote:That would be a module like Products, not a normal pages menu...
Yes, but what i can use for this?

I was thinking to do it on the menu. I must have inputs/textareas for all positions in menu. If i can use {content block=....} value in menu templates i can do this in menu. But i don't know how and and which module to use.

I can build module by own, but this take a lot of time....
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: External parameters in content/menu links

Post by Dr.CSS »

Sorry if I wasn't clear, Products as in a module called Products...

http://dev.cmsmadesimple.org/projects/products
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: External parameters in content/menu links

Post by spcherub »

Using a separate module like Dr.CSS suggested the the best (right) way to go. But if you can/must use named content blocks you can always use CGSimpleSmarty to get the values for each block and display as you need. You can also call CGSimpleSmarty from within the menu templates usinf the pageID as the reference.
Post Reply

Return to “The Lounge”