Page 1 of 1

External parameters in content/menu links

Posted: Fri Apr 27, 2012 9:13 am
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

Re: External parameters in content/menu links

Posted: Fri Apr 27, 2012 7:06 pm
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...

Re: External parameters in content/menu links

Posted: Fri Apr 27, 2012 7:26 pm
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.

Re: External parameters in content/menu links

Posted: Fri Apr 27, 2012 7:32 pm
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...

Re: External parameters in content/menu links

Posted: Fri Apr 27, 2012 8:23 pm
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.

Re: External parameters in content/menu links

Posted: Sat Apr 28, 2012 2:05 am
by Dr.CSS
That would be a module like Products, not a normal pages menu...

Re: External parameters in content/menu links

Posted: Sun Apr 29, 2012 11:15 am
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....

Re: External parameters in content/menu links

Posted: Sun Apr 29, 2012 4:12 pm
by Dr.CSS
Sorry if I wasn't clear, Products as in a module called Products...

http://dev.cmsmadesimple.org/projects/products

Re: External parameters in content/menu links

Posted: Thu May 03, 2012 6:25 pm
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.