More in this section

Forums / Developing with Sitefinity / Creating a table of contents from page content

Creating a table of contents from page content

2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    24 Jul 2008
    Link to this post
    Hi,

    Had a request to create a "Table of Contents" control that can be used at the top of the page that displays a anchor links list of all the heading elements in a certain content container eg #column2.

    I could do this using  javascript such as jquery but I was wondering if it would be better to build server-side functionality for this? If so any ideas where I would start and whether it could be done?

    Thanks

    Seth
  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    29 Jul 2008
    Link to this post
    Hi Seth Cleaver,

    Lists module (public control is called Lists) has this functionality built in. All you have to do is select the "Anchor list" as the mode.

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    Kind regards,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered