Anchor link format from menuProxy
Posted: Thu Mar 13, 2025 7:32 am
I've put a menuProxy in a template, which lists all the h2-h6 headers in the topic.
This appears to add an id to each h2-h6 header, which is the anchor.
For example, for the h2 heading 'My Heading', the menuProxy adds the id 'MyHeading' to the related h2 element.
<h2 id="MyHeading">My Heading</h2>
However, I want to enforce a different convention on the ids/anchors, namely kebab case: id="my-heading"
Is there some setting in Flare to do this? Or do I have to go a client-side JavaScript route?
This appears to add an id to each h2-h6 header, which is the anchor.
For example, for the h2 heading 'My Heading', the menuProxy adds the id 'MyHeading' to the related h2 element.
<h2 id="MyHeading">My Heading</h2>
However, I want to enforce a different convention on the ids/anchors, namely kebab case: id="my-heading"
Is there some setting in Flare to do this? Or do I have to go a client-side JavaScript route?