I would need to create a component in SXA that displays a link to all elements on the page that have a h2 title.
In a non-SXA site I would know how to do this as I would have control over my components. They could set an anchor and set some values that can be read by the navigation component to display them as links. We also have solutions that enable us to get the navigation on top but still be executed after the other renderings. So that would be ok..
But I need to do this in SXA... and I still want to use the default SXA components. So, how can I:
- add an anchor to the titles
- list all those anchors (and the title as text for them)
- make sure the anchor navigation rendering is executed after it has all information