How to pass parameter to url authored in Rich Text? | Community
Skip to main content
New Participant
October 16, 2015
Solved

How to pass parameter to url authored in Rich Text?

  • October 16, 2015
  • 3 replies
  • 2011 views

Is there any way which I can pass parameters while authoring internal links via link plugin in Rich Text editor.

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 Tomasz_Sobczyk

Regular pathfinder is not going to allow you to add parameters. You need to extend the Link dialog in Richtext and add custom "suffix" field there, of course including overriding the implementation part which is responsible for generating html of the link (which will include your additional parameter). 

3 replies

smacdonald2008
New Participant
October 16, 2015

Can you please describe you use case in more detail. From where do you want to pass a parameter from? 

Also - for more information about the list plug-in - see:

https://docs.adobe.com/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.rte.plugins.ListPlugin

shiv_0506Author
New Participant
October 16, 2015

I need to give some internal page link to the text authored in RTE. eg. /content/mysite/en_US/product. 

After that I need to append some paramaters to this link like http://localhost:4502/content/mysite/en_US/product.html#viewProductId=134.

I tried with giving link url as /content/mysite/en_US/product.html#viewProductId=134. But it is still pointng 

to  http://localhost:4502/content/mysite/en_US/product.html. It's not showing up the params.

Tomasz_SobczykAccepted solution
New Participant
October 16, 2015

Regular pathfinder is not going to allow you to add parameters. You need to extend the Link dialog in Richtext and add custom "suffix" field there, of course including overriding the implementation part which is responsible for generating html of the link (which will include your additional parameter).