Re: User Defined Token Substitution in Content

2016-09-12 Thread Oliver Lietz
On Sunday 11 September 2016 21:19:23 Adam Henderson wrote: > Hi, Hello Adam, > Being relatively new to Sling, is there an OOTB way to allow special tokens > to be inserted into the textual content (not into sly/jsp templates) that > when rendered can be resolved to some value (e.g. invoking a

Re: User Defined Token Substitution in Content

2016-09-12 Thread Bertrand Delacretaz
Hi Adam, On Sun, Sep 11, 2016 at 10:19 PM, Adam Henderson wrote: > .../content/products/product1 > - description : string = “This is the description of Product 1, hurry > - discount of $JCR[‘/content/promotions/discounts:holidayspecialdiscount’]% > applies!”

User Defined Token Substitution in Content

2016-09-12 Thread Adam Henderson
Hi, Being relatively new to Sling, is there an OOTB way to allow special tokens to be inserted into the textual content (not into sly/jsp templates) that when rendered can be resolved to some value (e.g. invoking a method on a service or a reference to a property in the JCR). eg: