Using content_module entries in menu

Discuss, ask and suggest about Usability and Accessability with CMS Made Simple
Locked
GroeneKaktus
Forum Members
Forum Members
Posts: 46
Joined: Sat Mar 06, 2010 10:38 am

Using content_module entries in menu

Post 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
Last edited by GroeneKaktus on Sun Mar 10, 2013 1:47 pm, edited 2 times in total.
GroeneKaktus
Forum Members
Forum Members
Posts: 46
Joined: Sat Mar 06, 2010 10:38 am

Re: Using content_module entries in menu

Post by GroeneKaktus »

Hate to bump, but any thoughts whatsoever?

Regards,
Jeroen
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3479
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Using content_module entries in menu

Post by velden »

Unfortunately no idea, but interested in an answer!
Locked

Return to “[locked] Accessability and Usability”