PageProperties in RTE | Community
Skip to main content
varuns46785756
Level 5
April 4, 2017
Solved

PageProperties in RTE

  • April 4, 2017
  • 2 replies
  • 1009 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

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

2 replies

edubey
edubeyAccepted solution
Level 10
April 5, 2017

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

varuns46785756
Level 5
April 10, 2017

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