Page 1 of 1
Get node content in menu module
Posted: Wed Sep 29, 2010 5:07 pm
by louisk
I'm wondering if this is made possible since this post in 2008?
I'm trying to access a content block through the menumodule.
Original post:
http://forum.cmsmadesimple.org/index.php?topic=25891.0
I am trying to create a menu in which some of the content blocks can be rendered.
Eg
http://lunariot.gilescambray.com/music/test-album/
The album cover on the right is it's own content block, yet I would like it to appear on the left, which is a menu using the menu manager module.
In advance, thanks
Re: Get node content in menu module
Posted: Wed Oct 06, 2010 10:14 am
by tomgsd
I just did a reply to almost exactly the same question! See:
http://forum.cmsmadesimple.org/index.ph ... 929.0.html
Re: Get node content in menu module
Posted: Wed Oct 06, 2010 5:37 pm
by Dr.CSS
But that reply didn't really answer the question...
Re: Get node content in menu module
Posted: Wed Oct 06, 2010 5:53 pm
by tomgsd
But that reply didn't really answer the question...
Not directly but it's a pointer to how it can be done. From what I understand the problem is how to use the menu manager to include content from a content block in each of the pages.
Using a menu manager template it is possible to pass the page alias into the "get_page_content" function in CGSimpleSmarty. Eg:
Code: Select all
{foreach from=$nodelist item=node}
{$cgsimple->get_page_content($node->alias)}
{/foreach}
Hope I haven't mis-understood what we're trying to achieve here!
Re: Get node content in menu module
Posted: Wed Oct 06, 2010 6:20 pm
by Dr.CSS
I've been wanting to do this for a while so I can make a true tab template, like the tabs on the main site, hope this works...
Re: Get node content in menu module
Posted: Wed Oct 06, 2010 7:24 pm
by tomgsd
I've been wanting to do this for a while so I can make a true tab template, like the tabs on the main site, hope this works...
I've done this kind of thing a few times so post back if you have any trouble. CGSimpleSmarty is one of CMSMS's most useful modules. I would highly recommend it to anyone.