Hi,
Would be nice to have a global tag that gets all the paragraphs in a page, not only the native paragraphs, but also the global elements.
Best Regards,
Nuno
Hi,
Would be nice to have a global tag that gets all the paragraphs in a page, not only the native paragraphs, but also the global elements.
Best Regards,
Nuno
Could you elaborate on what the tag should contain? The HTML output of the paragraphs? A loop? Do you mean a the output of of all paragraphs to be displayed on one paragraph (would cause an infinite loop). Is it something like <!--@DwContent--> in the page template that ytou want available somewhere else?
Hi Lars,
At the moment, < !--@Global:Page.Content([X])-- > gives you all of the paragraphs of page X. But if you have a global element on that page, Dynamicweb would not render that paragraph. The tag I am proposing would.
Example:
Page ID 123:
Paragraph1
Paragraph2 (global element)
Paragraph3
Paragraph4 (global element)
< !--@Global:Page.Content([123])-- > would render paragraphs 1 and 3
< !--@Global:Page.Content.Full([123])-- > would render paragraphs 1, 2, 3 and 4
This would help build master pages for clients when they want to have little differences along the website, like, different left and right column contents. At the moment we have to duplicate paragraphs if we want to use them in more than one structure.
Best Regards,
Nuno
nuno wrote:
Hi Lars,
At the moment, < !--@Global:Page.Content([X])-- > gives you all of the paragraphs of page X. But if you have a global element on that page, Dynamicweb would not render that paragraph. The tag I am proposing would.
Example:
Page ID 123:
Paragraph1
Paragraph2 (global element)
Paragraph3
Paragraph4 (global element)
< !--@Global:Page.Content([123])-- > would render paragraphs 1 and 3
< !--@Global:Page.Content.Full([123])-- > would render paragraphs 1, 2, 3 and 4
This would help build master pages for clients when they want to have little differences along the website, like, different left and right column contents. At the moment we have to duplicate paragraphs if we want to use them in more than one structure.
Best Regards,
Nuno
This is actually a very good idea. I hope this gets implanted
I see your point. Come the next update package it'll be easier to work with templates in a master templates like way.