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"}
Code: Select all
{$cgsimple->get_page_content($node->alias,'screenshot','screenshot')}
<img src="/uploads/images/screenshots/{eval var="$screenshot"}" alt="{$node->menutext} screenshot" />
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