I have a need to create a webpage with anchor links on the titles, that I'd then build links to from elsewhere in the website.
We've recently moved to AEM Cloud and the Universal Editor and the standard RTE functions are quite limited compared to on-prem. Can anyone suggest how I can add anchors with no anchor function in the RTE and no access to the html?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @CarolineCo7 ,
In AEMaaCS with the Universal Editor, you can’t insert anchors directly in the RTE like in older on-prem AEM-that features gone.
The simplest approach is to give the target elements (like your titles) unique HTML id attributes through component configuration or a developer update to the component’s HTL. Then you can link to them using #idname in your URLs.
So basically- ask your devs to add IDs to the headings in the component, then you just link to those IDs-that’s your anchor link.
Thanks!
Hi @CarolineCo7 ,
In AEMaaCS with the Universal Editor, you can’t insert anchors directly in the RTE like in older on-prem AEM-that features gone.
The simplest approach is to give the target elements (like your titles) unique HTML id attributes through component configuration or a developer update to the component’s HTL. Then you can link to them using #idname in your URLs.
So basically- ask your devs to add IDs to the headings in the component, then you just link to those IDs-that’s your anchor link.
Thanks!