Skip to main content
Home  ›  Docs › Feature

List Header (ListContent/ListPresentation) - for Titles, Settings and more

Warning ⚠️: New Docs Available

These are old docs and we haven't found the time to completely move them. You will find comprehensive new docs on docs.2sxc.org.

Introduced in Version 03.00.00
Demos of this feature

This is rather simple.

ListContent - List.Content

the ListHeader contains content which is not repeated in a template. This is typically the modules title, an introduction text or table-heading labels. Sometimes you'll also show a value multiple times in the repeating area of the template, but the value would never change. An example of this would be the word "more" which would be clickable on each item, but would only be configurable once in the header. 

Enable the ListHeader feature

  1. First, create a ContentType to contain all your header values...
  2. Then enable Lists in the template settings (assuming you didn't do this already)
  3. ...and you will see new dropdowns, allowing you to set the content type & default for the ListHeader

Using ListContent in Token Templates

For Tokens, use it like this [ListContent:Title]. When you need an inline toolbar, use [ListContent:Toolbar]. Note that it will also auto-align/float if it's inside an html-tag with the class sc-element. Like this:

[ListContent:Title][ListContent:Toolbar]

Using List.Content in Razor Templates

This is the vary same principle, just using the razor syntax. 

[todo:2dm]

ListPresentation - Template Settings

The ListPresentation is available throughout the entire template - even when looping. This is the big difference to the classic Presentation, which changes for each item, giving each item custom settings how to show it. Enable it in the same place as where you would enable the ListContent. 

Sample with Tokens

<[ListPresentation:HeadingTag] class="sc-element">
    [ListContent:Title][ListContent:Toolbar]

Sample with Razor

[todo:2dm]