Can I move anchors generated by the parsys to the included component's ID attribute? | Community
Skip to main content
New Participant
October 16, 2015
Solved

Can I move anchors generated by the parsys to the included component's ID attribute?

  • October 16, 2015
  • 2 replies
  • 1084 views

AEM 5.6.1 - I've long wondered whether I can remove the anchors which are generated by the parsys component (for enabling linking down the page) and redefine them as ID attributes on the included resource. The anchors are an unfortunate nuisance when trying to code CSS to handle contextual styling of adjacent components.

I see that I can affect the attributes of a component by modifying the cq:htmlTag property, but that doesn't appear to be modifiable during runtime (unlike the option to get/set additional CSS classes on the component via IncludeOptions.getCssClassNames()).

Do I have any options which I've overlooked?

Thanks!

Garth

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 Ratna_Kumar

Hi Garth,

Thanks for reaching out to Adobe Community!

There is nothing Out of the Box(OOTB) with AEM that will let you move anchors, but you can use Javascript to modify them.

Refer this link: http://www.the-art-of-web.com/javascript/remove-anchor-links/

Thanks,
Ratna Kumar.

2 replies

Ratna_Kumar
Ratna_KumarAccepted solution
New Participant
October 16, 2015

Hi Garth,

Thanks for reaching out to Adobe Community!

There is nothing Out of the Box(OOTB) with AEM that will let you move anchors, but you can use Javascript to modify them.

Refer this link: http://www.the-art-of-web.com/javascript/remove-anchor-links/

Thanks,
Ratna Kumar.

garth914Author
New Participant
October 16, 2015

Ratna Kumar wrote...

Hi Garth,

Thanks for reaching out to Adobe Community!

There is nothing Out of the Box(OOTB) with AEM that will let you move anchors, but you can use Javascript to modify them.

Refer this link: http://www.the-art-of-web.com/javascript/remove-anchor-links/

Thanks,
Ratna Kumar.

 

Thanks Ratna! That's not what I wanted to hear, but what I expected to hear. Oh well. Thank you for the response!