Hello everyone,
I’m trying to create links that take you to a section on the page within a dynamic list. Usually I would simply give it an ID and link it up.
However, as it’s in a dynamic list, I can’t label each item separately, so it doesn’t work.
The following script was provided in a previous thread but I need help customising it to work on my site. by @samliew
<script>
var Webflow = Webflow || [];
Webflow.push(function() {
// Set dynamic list IDs based on links in the intro paragraph
var links = $('.para a').map(function() { return $(this).attr('href').slice(1); });
$('.w-dyn-item').each(function(i) { $(this).attr('id', links.get(i)); });
});
</script>
See other thread here: https://discourse.webflow.com/t/in-page-linking-with-dynamic-lists/26924/5
Here is my public share link: Webflow - The Jungle Giants
(how to access public share link)
Page > Photo Diary