Expand my Community achievements bar.

SOLVED

PageProperties in RTE

Avatar

Level 5

Hi,

I need to display one pageproperty value on page in RTE.On of my page I am using RTE to display the description (all the data are author by use  static).On the same page I need to display one dynamic value(coming from page properties).I am trying to use pageProperties.get(phonenumber) or  ${pageProperties.phonenumber}, but its not taking value inside RTE

Please suggest

 

Regards,

1 Accepted Solution

Avatar

Correct answer by
Level 10

When you are using this:  ${pageProperties.phonenumber}

It will help you to get the data or value on the page. But when it comes to the value present in the dialog, you have to write some Custom JS

Logic in JS, 

For current RTE, get the jcr:content node of page, read the value and put that value as the value of RTE field.

Let me know if my understanding is wrong on the question.

Thanks

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

When you are using this:  ${pageProperties.phonenumber}

It will help you to get the data or value on the page. But when it comes to the value present in the dialog, you have to write some Custom JS

Logic in JS, 

For current RTE, get the jcr:content node of page, read the value and put that value as the value of RTE field.

Let me know if my understanding is wrong on the question.

Thanks

Avatar

Level 5

Thanks, I am using use api js and its working now.