this is some text saved to the page
Document properties
<#assign dumy = doc.setTitle("this is the new title")>
<#assign dumy = doc.setDescription("this is the new description")>
<#assign dumy = doc.setFeedItemUrl("https://not-a-real-domain.com")>
Document custom properties
There are now 10 custom document properties that will hold strings of up to about 20,000 characters. They are named – very imaginatively – custom1, custom2, …, custom10. These properties are preserved through all workflows. To access one of these values in a script do:
custom1 = ${doc.custom1}
To assign a value to one of these variables do:
<#assign dumy = doc.setCustom1("uno")>
Note a small detail: The values you set on custom variables currently “take effect” at the end of script execution. so if you assign a value to one of these properties in a script and then access its value, you won’t get the updated value. This is a (minor) bug scheduled for the next update.