tainacan/docs/key-concepts.md

59 lines
3.0 KiB
Markdown
Raw Normal View History

2017-11-26 21:17:51 +00:00
# Understanding Tainacan
The typical workflow when you create a Digital Repository with Tainacan is:
* Create a collection
* Configure which field (fields) item in this collections will have
2017-11-26 21:17:51 +00:00
* Configure the collection
* Configure which filters will be used when browsing the collection
* Upload item to the collection or import them from a source
## Collections
A collection is a group of items, that have the same set of field. Every item uploaded to your digital repository will be part of a collection. For instance, you could have a "paintings" collections, with field such as Title, Author, Country, Tecnique, etc and another collection for "films", with Title, Director, Country and Genre.
2017-11-26 21:17:51 +00:00
For each collection you can set a different set of field and they can share common taxonomies, which means you could browse for items in a specific Country, and get both paintings and films in your results.
2017-11-26 21:17:51 +00:00
Collections can also have child collections, which will inherit parent's collection field and can add their own set of additional information.
2017-11-26 21:17:51 +00:00
## Items
Items are the actual content of yout repository. The painting, the film, the book and so on. They belong to a collection and have all the field configured in the collection.
2017-11-26 21:17:51 +00:00
In WordPress, each item is a post and its post type represents its collection.
## Field
2017-11-26 21:17:51 +00:00
Every collection have a set of field. They are the description of the items of this collection.
2017-11-26 21:17:51 +00:00
Each field has a set of settings. Is it required? Is it supposed to be unique (an ID number for example)? Does it accept multiple values? What is it Field Type? (see the complete list of field attributes).
2017-11-26 21:17:51 +00:00
(Note: you can import/export presets of field)
2017-11-26 21:17:51 +00:00
## Field Types
Field types are the objects that represent the types of field that can be used. Examples of Field Types are "Text", "Long text", "Date", "Multiple selection (checkbox)", "Relationship with another item", etc (see full list).
2017-11-26 21:17:51 +00:00
Each field type object have its own settings and web component that will be used to render the interface.
Field Types can be created via plugins and extend the default set of types shipped with Tainacan.
## Filters
For every collection, you may choose which field will be used to filter the results in a faceted search interface. These are the filters.
2017-11-26 21:17:51 +00:00
Filters give the ability to the user to filter items in a collection using a Filter Type.
## Filter Types
Filter types are the different types of interface to filter items in a collections based on one specific Field. Examples of Filter Types are "text", "datepicker", "date range picker", "number range slider", etc.
2017-11-26 21:17:51 +00:00
Each Filter Type object have its own settings and web component that will be used to render the interface.
Filter Types can be created via plugins and extend the default set of types shipped with Tainacan.
## Taxonomies
Taxonomies (or simply categories) that can be created and used to classify items. Typical Taxonomies are Genre, Country, etc.
They are the same WordPress Taxonomies you already know, and they can be shared among many collections.