Expand my Community achievements bar.

SOLVED

Using Request or dynamic Variables in RTE

Avatar

Level 4

Hi , 

  I am trying to implement a use case where user is redirected to thank you page . As with normal content i would also like to give content author provision to add some dynamic variables like 'ID' ,'NAME' ...

 

As there is content which content editors want to play around , RTE would best suit them but I'm not sure what approach should be taken to allow them to add dynamic variables in the content . There is an existing Text component in /libs/mcm/components/newsletter/text which has been implemented using  a similar approach but the variables are picked from client context and user cq personalization library . I'm not using personalization nor any frameworks like angular where i can have the values stored in scope . I can only have request variables from the URL  . Any approaches or pointers to achieve this use case ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

One of the easiest approach would be to add the requestscope variable to clientcontext object and access the same in text

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

One of the easiest approach would be to add the requestscope variable to clientcontext object and access the same in text