Get node content in menu module

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
louisk
Forum Members
Forum Members
Posts: 89
Joined: Wed May 30, 2007 7:40 pm

Get node content in menu module

Post 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
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: Get node content in menu module

Post by tomgsd »

I just did a reply to almost exactly the same question!  See: http://forum.cmsmadesimple.org/index.ph ... 929.0.html
Green Sheep Design Ltd. - www.greensheep.co.uk
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Get node content in menu module

Post by Dr.CSS »

But that reply didn't really answer the question...
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: Get node content in menu module

Post 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!
Green Sheep Design Ltd. - www.greensheep.co.uk
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Get node content in menu module

Post 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...
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: Get node content in menu module

Post 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.
Green Sheep Design Ltd. - www.greensheep.co.uk
Post Reply

Return to “The Lounge”