In-Page CMS Linking

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

 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)); });

See other thread here:

Here is my public share link: Webflow - The Jungle Giants
(how to access public share link)

Page > Photo Diary