Dynamic IDs and anchor links for in-page linking in CMS Template Pages

With this function editors can create content on a page that is easy to navigate through and find the information the visitor needs with a fixed submenu. See example of information and side navigation: http://getbootstrap.com/getting-started/#download

  • Martijn Runia
  • Jan 30 2017
CMS
  • Matthew Sanderson commented
    December 06, 2017 14:39

    I could really do with this too..

  • Ibrahim laswi commented
    April 04, 2018 12:43

    Try this:

    add this code in the header of the collection page>

    <script>
    function myFunction() {
    alert("Page is loaded");
    let id = "ADD FIELD" ;
    let section = document.getElementById('#'+id);
    section.id = newId;
    }
    </script>

     

     

  • Birgit Miechielssens commented
    May 16, 2018 11:49

    +1, Could really do with this as well

  • Stephen Bazley commented
    July 30, 2018 05:57

    HTML anchor tags are important for user experience and SEO. Anchors need to be added to the Rich Text field of a collection in the CMS.

    This will allow collection items to have custom anchors that relate to the content of the dynamic page (ie each collection item).

  • Brandyss Adams commented
    16 Mar 21:58

    Need!