Hi!

If you're using freemarker, take a look at:

mgnl.inherit(content).containers

eg:

[#assign mycontainer=mgnl.inherit(content).containers /]

and then:

mycontainer["00"].link
mycontainer["00"].title

or something like that...

Regards from Vienna,

Richard



Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Luis H. Fernandez
Gesendet: Montag, 17. Mai 2010 23:31
An: [email protected]
Betreff: [magnolia-user] Template Vs. Paragraph

Hi Folks,

  I am having a little issue that I dont know how to solve.
Suppose I have a site with this structure:
+home
  +about
  +services
    +a cool service
...

So I write a template that is  the base for all pages. I have an upper 
navigation and a right navigation paragraphs.
I use the same template for all the pages, and on this template I include the 
navigation paragraphs.
The thing is that on every new page, component "containers" are empty, and I 
would like my upper navigation to be the same in all the pages.

How can I do that?

I found this 
http://wiki.magnolia-cms.com/display/WIKI/Reusing+content+on+different+pages 
but when I use [[email protected] path="home"/]
it loads all content from all paragraphs....and also there should be a nicer 
way to do it.

Thanks!

P.S. Could you give me a deeper explanation about the difference of a paragraph 
and a template? Thanks.

Luis

--
--
"The most beautiful thing we can experience is the mysterious. It is the source 
of all true art and all science. He to whom this emotion is a stranger, who can 
no longer pause to wonder and stand rapt in awe, is as good as dead: his eyes 
are closed." (A. Einstein)

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to