Developer forum

Forum » Templates » Item field default values - options?

Item field default values - options?

Sten Hougaard
Reply

Hi,

I can see from some release notes that it is possibel to get intelligent default values like:

  • @Page(PageTitle)
  • @Code(new Date())

But can you provide with a full list of these features? Can I for instance get the name of the paragraph item as default value? How...

Its a crying shame that you fail on providing good documentation of this otherwise great CMS system. Many features are poorly documentated and it leaves a lot to wish for when it comes to Dynamicweb documentation. What happend to the plans to use Github for documentation and code examples?


Replies

 
Merethe Nielsen
Reply
This post has been marked as an answer

Hi Steen

Is it the "Context sensitive default values" that you mean?

Check: http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-fields.aspx under "Default values". Here is examples and references to API dokumentation.

Kind regards,
Merethe

Votes for this answer: 1
 
Sten Hougaard
Reply

Thanks Merethe,

That was it! :-)

 
Jacob Storgaard Jensen
Reply

Hi Sten, did you ever manage to get the ParagraphHeader as your default text on an item text field?

 
Sten Hougaard
Reply

No, I didnt... My .NET and knowledge in Dynamicweb API was not deep enough.. some day, Jacob, some sunny day... :-)

 

You must be logged in to post in the forum