ComboStrap UI - Namespace TOC

1 - About

A namespace TOC is a navigational component that creates a table of content (TOC) for a namespace. It lays out all pages of a namespace (ie directory) in a list fashion

This component is mostly used in a sidebar or sidekickbar

Since version 1.6

The ntoc was earlier known as the minimap component.

3 - Syntax

<ntoc ns="current">
<index>$id - $title</index>
<page-item>$id - $title</page-item>
<ns-item>$id - $title</ns-item>
</ntoc>

where:

  • ns is an attribute that defines the namespace (Default to the namespace of the current page)
  • index defines a template for the index page of the namespace Since version 1.7
  • ns-item defines a template for each sub-namespace of the namespace Since version 1.7
  • page-item defines a template for each page in the namespace
ntoc, index, page-item and ns-item are all superset HTML component.
ntoc is a template component created above the list component.

4 - Example

<ntoc color="info">
<index>
[[$id|$title]]
</index>
<page-item>
<icon name="file"/>[[$id|<pipeline>"$title" | replace("ComboStrap UI - ","")</pipeline>]]
</page-item>
</ntoc>
where the page-item template is composed of:

5 - Documentation / Reference