Developer forum

Forum » CMS - Standard features » Get page item field value in paragraph template

Get page item field value in paragraph template

Rene Poulsen
Reply

Hi,

I have a page which is an item (Article). On this page i also have some paragraphs. They can be either regular paragraphs or item paragraphs - it doesn't matter.

Is there any easy way I can access a value from a field on the page item in the paragraph template. I've taken a look at this: http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/Page-tags/Page/Loops/Item-Page-Fields.aspx, but it's not a page properties item, so it won't work.


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Rene

Then I think snippets is a possibility

http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/General-tags/Snippet.aspx

Nicolai

 
Rene Poulsen
Reply

Hi Nicolai,

Thank you! I've never event thought of using snippets in that way. I usually have a snippet placeholder (or whatever you call it) in the master or page layout files - and use them in paragraph/module templates.

 

You must be logged in to post in the forum