Anchors for dynamic pages

I am making a gaming website. The guide pages look like this:

https://www.genshin360.com/guides/how-to-spend-money-in-genshin-impact

The way I structured this is that the guide summary items in the top left box are in a dataset and a repeater. The guide main content sections are in a dataset and repeater. The box on the top right acts like an Index and shows the chapter titles from the chapter dataset. Want I want is very simple: I want the index items on the right to be links that bring me to the chapter on the page. Normally you would do this with anchors but these cannot work in repeaters.

Now I already did some research and it seems I need to code this. It would be the first time for me to use any type of code so I need the total beginner version answer to this question. I have seen this question asked many times but never found a comprehensive answer. I hope to get one here. Thanks!

1 Like

See this, May be its work for you

Thanks but this does not offer me a solution. The content on the page (the boxes on the left below the summary box) comes from a repeater which creates each content box. Unfortunately you cannot put Anchors in repeaters. If you could then this problem would be easy to solve. I need a solution where somehow each content box from the repeater knows its position on the page and then the link in the index at the top right box links to that location. I googled quite a bit and it should be something with a location and scroll to function. I just have no concrete example similar to my scenario and this would be my first time implementing code…