Developer forum

Forum » Templates » Global Items?
Mikkel Toustrup Olsen
Reply

Hello all,

I came across another item scenario. I need some general information on multiple items throughout the website. However, this information has to be editable. Address, Email, website etc. Given the design its not possible or nice, to do this directly in the editor and do a "normal" global paragraph.

Any ideas?

As it is, I have x-amount of items with the same list template, in this list template I was thinking of calling the global item as..  @GetGlobalValue("....") 

Any thoughts of this?.

/Mikkel


Replies

 
Jonas Mersholm
Reply

I'm unsure whether or not this is actually possible without doing custom code, since all template files are parsed seperately. Looking for a guru to answer this :D

 
Mikkel Ricky
Reply
This post has been marked as an answer

Does it make sense to put this general information in a website property item? Then it will be available anywhere you need it.

Best regards,
Mikkel

Votes for this answer: 1
 
Jonas Mersholm
Reply

Just blending in here -How would you access a website property from a dwcontent paragraph? I had this issue just the other day.

 
Merethe Nielsen
Reply
This post has been marked as an answer

Hi

Item website properties are available in paragraph templates but they are not visible in DwtemplateTags:

http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/Paragraph-tags/Item-Area-FieldSystemName.aspx

Kind regards,
Merethe

Votes for this answer: 1
 
Jonas Mersholm
Reply

Thank you.Thats why i couldent find them :)

 

You must be logged in to post in the forum