Skip to main content Skip to navigation

Clever TOC listing data list page items

Example 2

In this second example, instead of retrieving a list of pags, we get the entries from a datalist type page (glossary is one type of datalist). The url is a little different, using the Sitebuilder apiLink opens in a new window call for data lists. We can include keywords in this using the parameters tag=tag_name

var url2 = "/sitebuilder2/api/dataentry/entries.json?page=/services/its/intranet/projects/academictechnology/academictechnology-newsite/recipestoolslist";

For this one we have provided a div based template to be copied. The class .box has been used to style the divs that get created.

<div class="clevertoc">
<div class="template3 hidden box">
<h5 class="title">blah</h5>
<p class="description">blah</p>
</div>
</div>

Let us know you agree to cookies