I’m working on a blog project in which the articles are structured as follows on airtable :
On softr I use a dynamic data block in which I can map all the data related to my article.
On the other hand, I want to add a summary that includes links to the corresponding part of the article. This is where it gets complicated, I only use one dynamic list detail block to display my entire article. How can I link to the right part of the article, without the page refreshing with each click?
Thank you very much for your help.
You’re talking about HTML anchors. As far as I can tell you can only do anchor links to a block, not to dynamic content within a block. Links (Page, Block, and External Website) - Softr Docs
Alternatively you can do each blog article as static blocks per the docs How to create a blog - Softr Docs
I think I get what you’re asking, but one thing I’m not clear on is whether you want your summary of links to be part of the list details block, or whether you want it to be somewhere else in the page, on another block.
I am not sure it matters which one you want, though. Either way, if I were trying to do this, the approach I would take is to insert named anchors into my article, any place I need to be able to link to. And then I would link to those named anchors from wherever I put my summary.
A named anchor looks like this:
<a name="MyExcellentSection">My Excellent Section</a>
And a reference to it looks like this
<a href="#MyExcellentSection">Go To My Excellent Section</a>
Hello, thank for your answer.
I try your solution, but that don’t work
Can you post a link to a page (that I would have access to) that isn’t working?
Hello, I just saw your message. Thanks for your help
Below is a link to a test page
I look forward to hearing from you,
You were so close!
There are some places that look like this:
<h2 id="#title2">Titre 2</h2>
If you remove the
# so it looks like this you will be good:
<h2 id="title2">Titre 2</h2>
Thank you very much Everything works perfectly