Collection Configuration

A Collection Configuration provided instructions on how the Textstem admin system should manage a collection. A collection is read from a JSON file like this:

{
    "widgets": [
        "thumbnail",
        "tags",
        "categories",
        "hierarchy"
    ],
    "tag_type": [
        "News",
        "Zones"
    ],
    "index_views": [
        "table",
        "cards"
    ],
    "table": {
        "pagesize": 20,
        "columns": [
            {
                "name": "title",
                "label": "Title"
            },
            {
                "name": "published",
                "label": "Published",
                "format": "yesno"
            },
            {
                "name": "post_status",
                "label": "Visibility"
            },
            {
                "name": "updated_at",
                "label": "Modified"
            }
        ]
    }
}

Widgets

The widgets entry lists out which of the standard widgets should be enabled. These are 

  • thumbnail 
  • tags 
  • categories
  • hierarchy - which includes a selector set a 'parent post'
  • meta - which includes a summary description and keywords. 

 

Tag Types

Tags can be grouped into 'types'. If tag types are being used, it is possible to list which types should be available for selection  to this collection. 

Index Views

Textstem supports several "index views" - ways of viewing lists of posts in a collection. These are:

  • table
  • tree
  • cards
  • calendar
  • map
  • columns
  • small-cards
  • large-cards

Each collection can be configured to use one or more index views (and the administrator can select thei preferred view from the enabled views). If no index view is configured, the default "Table" view is used (this provides a standard sortable fitlerable table).

View Configuration

Some index views can be configured. For example,the default table view can be configured to show or hide certain columns