Expand my Community achievements bar.

SOLVED

How to pass parameter to url authored in Rich Text?

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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). 

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Level 2

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.

Avatar

Correct answer by
Level 2

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).