Page 1 of 1

Using content_module entries in menu

Posted: Tue Feb 26, 2013 1:09 pm
by GroeneKaktus
Dear all,

For a lot of websites I'm working on, I use different menu templates, which load content blocks from the child pages in the menu itself, mostly images.

Normally I use something like this in my page template:

Code: Select all

{content_image block='screenshot' dir='images/screenshots' assign="screenshotimage"}
And in my menutemplate:

Code: Select all

{$cgsimple->get_page_content($node->alias,'screenshot','screenshot')}
<img src="/uploads/images/screenshots/{eval var="$screenshot"}" alt="{$node->menutext} screenshot" />
This is working okay. The only downfall is the fact that for instance the content_image block only shows a dropdown with images filenames, which isn't really userfriendly for the editor.

For this I would like to use, for instance, the GBFilePicker, which adds more functionality to the editor by showing the picture itself.

Downfall is that values of this content_module block can't be fetched in a menu template.
Or is it?

Is there any way I can get the value of a content_module block of child pages for use in a menu template?

Thanks guys in advance,

regards.

Jeroen

Edit: changed topic title

Re: Using content_module entries in menu

Posted: Sun Mar 10, 2013 1:45 pm
by GroeneKaktus
Hate to bump, but any thoughts whatsoever?

Regards,
Jeroen

Re: Using content_module entries in menu

Posted: Sun Mar 10, 2013 2:39 pm
by velden
Unfortunately no idea, but interested in an answer!