Table of contents

From Redazione
Jump to navigation Jump to search
Line 13: Line 13:
 
Below, is the table of contents of the root pages of this wiki, as appears once rendered, and when edited through the related form (by design, it excludes all the organization's related pages).
 
Below, is the table of contents of the root pages of this wiki, as appears once rendered, and when edited through the related form (by design, it excludes all the organization's related pages).
 
-->
 
-->
Here is an example of a TOC (without nested pages) once rendered<noinclude>[[File:How it works/Table of contents/TOC example 1.jpg|alt=|border|none|frameless]]
+
<noinclude>
 +
Here is an example of a TOC (without nested pages) once rendered
 +
 
 +
[[File:How it works/Table of contents/TOC example 1.jpg|alt=|border|none|frameless]]
  
 
And here of a TOC while edited through the related form (items can be rearranged and selected/deselected, and that will be matched on the front-end)
 
And here of a TOC while edited through the related form (items can be rearranged and selected/deselected, and that will be matched on the front-end)

Revision as of 20:52, 27 December 2020

The system automatically creates a Table of contents for each organization (as well for any other set of pages which includes a TOC template on top of it) with the tree of all its sub-pages, at a location like the following:

https://culturaitaliana.org/wiki/[organization name]/Table of contents

The Table of contents (which can contain an arbitrary number of nested sub-pages) can be interactively edited through the related form (pages can be shown/hidden and rearranged) and is used as a reference to display the organization's pages (which could be also called "site") on the front-end, in the desired order, with only the desired pages, and in a way that they can be easily navigated, both through previous/next buttons below each page, and through a side navigation panel.

Currently (November 2020) the system is designed in such a way that a TOC can be put within any set of pages intended to be displayed on any front-end, and is not limited to the pages of the organizations themselves. We are using such feature, for instance, to populate a directory of authors and open-source books, currently using a general TOC, but as soon as the number of authors grow, the TOC can be split simply creating a TOC on top of each author's page and then programmatically recompose them if a data-consumer wants to display all the authors and all the works of them in a single-page application: which should be discouraged both because writers tend to be prolific, once they reached a perfect command over the language of their mind, and, I would say, even before, to achieve that level – and because authors are expected to be different each other, to be such.

Here is an example of a TOC (without nested pages) once rendered

And here of a TOC while edited through the related form (items can be rearranged and selected/deselected, and that will be matched on the front-end)

Here is an example of a more complex TOC, with nested pages


and when edited through the related form

How it works/Table of contents/TOC example 4.jpg


(nested pages can be rearranged on the same level only)