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:
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"
}
]
}
}
The widgets entry lists out which of the standard widgets should be enabled. These are
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.
Textstem supports several "index views" - ways of viewing lists of posts in a collection. These are:
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).
Some index views can be configured. For example,the default table view can be configured to show or hide certain columns