Anchor link format from menuProxy

This forum is for all Flare issues not related to any of the other categories.
Post Reply
scap
Propeller Head
Posts: 66
Joined: Tue Jun 28, 2022 7:36 am

Anchor link format from menuProxy

Post by scap »

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?
scap
Propeller Head
Posts: 66
Joined: Tue Jun 28, 2022 7:36 am

Re: Anchor link format from menuProxy

Post by scap »

To clarify as I can't edit posts (request blocked!)...

The resultant URL would be: mysite.com/some-topic.html#my-heading rather than mysite.com/some-topic.html#MyHeading
Psider
Propellus Maximus
Posts: 902
Joined: Wed Jul 06, 2011 1:32 am

Re: Anchor link format from menuProxy

Post by Psider »

I don't think there are any settings to control how Flare auto-creates bookmarks. I think it would be a nice option to have though, so do consider submitting a feature request.
Post Reply