Manage object types
DocsThis page explains what object types are and how you can manage them within KLEKSI.
What are object types?
An object type determines which data you can register for an object.
Examples of object types are:
- Painting
- Sculpture
- Publication
- Photo
- Object
- Audio file
- Video file
Because each type of object has different properties, you can determine for yourself which information must be recorded for each object type.
For example, a painting requires fields for artist, technique, and dimensions, whereas a publication requires fields for author, publisher, and ISBN.
KLEKSI offers complete flexibility to configure the desired structure per object type.
The structure of an object type
KLEKSI works with a flexible structure consisting of three layers:
- Groups
- Elements
- Fields
Example
Group : Identification
Element : Manufacturer
Fields :
- Manufacturer's name
- Role manufacturer
When an object has multiple makers, the Maker element can be easily duplicated so that multiple makers with different roles can be registered.
This structure makes it possible to keep complex registration structures clear and organized.
Create an object type
Go to Object types via Management.
- Click on the + button.
- Enter a name for the new object type.
- Click Save.
The object type is added to the overview and is immediately available for further configuration.
Manage the structure of an object type
Click Edit Structure next to an object type.
You are now on the structure management page.
Here you see:
- Left: the current structure of the object type.
- Right: all available elements.
From this page, you can create groups, add elements, determine the order, and manage existing components.
Creating and managing elements
Elements form the building blocks of an object type and contain one or more fields.
Create new element
- Click on the gear icon.
- Open the overview of all elements.
- Click on the + button.
- Give the element a name.
- Add the desired fields.
- Set read and write permissions if necessary.
- Click Save.
The new element then appears in the list of available elements.
Setting up the structure
First, create a group. Click on 'Add new group' to create a new group.
Examples of groups are:
- Identification
- Description
- Manufacture
- Provenance
- Documentation
- Media
Adding elements to a group
- Enable the Edit option.
- Create a group on the left side.
- Drag an element from Available elements to a group within the Current structure.
- Release the element at the desired position.
With drag & drop, you can also adjust the order of groups and elements.
Reuse elements
An important advantage of KLEKSI is that elements can be reused across multiple object types.
When the same element is used across different object types:
- the element only needs to be maintained once;
- users can search for the same data across multiple object types;
- data structures remain consistent.
- When a new field is added to the element, every object type that uses this element automatically has this new field available.
Examples of reusable elements are:
- Manufacturer
- Dating
- Material
- Dimensions
- Location
- Etc...
Elements that are used exclusively for a single object type can be searched separately.
Moving elements
Within KLEKSI, you can adjust the arrangement of the object structure by moving elements to a different group. This allows you to easily reorganize the structure without losing previously registered data.
The following principles apply when moving elements:
- Fields cannot be moved individually to another element.
- Only complete elements can be moved to another group within the object structure.
- When moving an element, all data in the corresponding fields is retained.
- After the move, the system needs some time for all data to update everywhere, depending on the size of the collection and the amount of data within the element.
Rights and access management
KLEKSI supports extensive permission structures for both dashboard users and frontend visitors.
For each role, you can determine:
- Which collections are visible.
- Which elements are visible.
- Which elements may be edited.
- Which elements are read-only.
When certain information should not be accessible to everyone, it is best to place it in a separate element. You can then protect this element with permissions.
This allows you to maintain full control over which information is visible to which user group.
Remove elements (under object type management)
Deleting an element requires additional confirmation because previously entered data may also be lost.
Remove an element from an object type
- Enable Edit.
- Drag the element from the Current structure back to Available elements.
- Confirm the deletion action.
You will then receive a warning such as:
Are you sure you want to remove 'Documents' from the current structure? Data that has already been entered for objects using this element will be deleted with this action.
To prevent accidental deletion, you must first enter the specified word before the final delete button becomes available.
Delete fields (for object type management)
Be careful when deleting fields. When you delete a field from the structure of an object type, all values entered for this field in the associated objects are also deleted. Deleting a field can therefore affect a large number of objects and must be performed carefully. To prevent unintended data loss, only a user with the Administrator role can delete a field from the structure.
When an element is used by multiple object types, deleted fields, including all entered data, are deleted from all object types that use this element.
Therefore, always check first:
- Which object types make use of the element in question.
- Whether the data is needed elsewhere.
You can find this overview via the gear icon in the element manager.
Manage fields
Change field type (under object type management)
Changing the field type affects the data already stored in the field. When you change the field type for an individual object, the existing content of that field is lost. This applies regardless of which field type you change the field to, for example from a text field to a list box or from a text box to a text field. If you change the field type within the structure of an object type, the existing content of this field is lost for all objects that use this structure. Changing a field type must therefore be done with due caution. To prevent unintended data loss, only a user with the Administrator role can change the field type.
Set up field validation
It is possible to configure the validation for a field. KLEKSI offers a toggle that allows you to set whether a field is required. This is intended for fields that you want to be minimally populated for an object. As long as the field is empty, this is indicated by a red dot. As soon as the field is populated, it turns green. This allows you to see at a glance whether the minimum required data is present.
On our roadmap: Sorting and filtering options are being added to the object overview. For example, if you have set four fields as required, it could become visible that an object is 100% complete when all four are filled in, or 75% complete when only three of the four required fields are filled in.
Set 'Use as'
In addition to the other field settings, you can also determine the function a field has within KLEKSI. By default, every new field has the function 'Standard'. If desired, you can assign a specific function to a field.
The following features are available:
- Use as 'Default'
This is the default function of a field. The field has no special function within KLEKSI and can be freely used to record data. - Use as 'Title/name'
This determines which field is used as the title or name of an object. The content of this field is used to display the object recognizably within KLEKSI and in parts of the public environment. This field setting is only available for the 'text field' type. - Use as 'Subtitle'
This determines which field is used as a subtitle. On the frontend detail page, this value is displayed directly below the title or name of the object. This field setting is only available for the 'text field' type. - Use as 'Description'
This determines which field is used as the public description of the object. On the frontend detail page, this text is displayed below the title and subtitle. Additionally, the content of this field can be used for the text-to-speech function, allowing visitors with dyslexia, a visual impairment, or other reading difficulties to have the description read aloud. This field setting is only available for the 'text box' type. - Use as 'Location'
The original function of this field is to display the location of an object on the frontend. However, the location field can also be used for other purposes. For example, you can display a year, manufacturer, place name, or another relevant value here that you want to bring to the visitor's attention at a fixed position on the detail page. This field setting is only possible for the 'text field' type.
Brief explanation
With the Use as option, you can assign a special function to specific fields. A field is then not only used for recording data but also receives a specific role within KLEKSI and optionally on the frontend.
Use another field as title
When all fields are set to Default, KLEKSI automatically adds a separate Title group to every object, containing the Title field. However, you can also choose to use an existing text field as the title field. For example, in a collection of prayer cards, you can set the Surname field as the title field. The automatically generated title field is then omitted. This is particularly useful for collections where objects do not have an actual title, but where another piece of data is better suited to identify the object. When a user subsequently creates a new object, KLEKSI no longer prompts the user to enter a title first, but in this example, the surname.
An additional advantage is that you can include the title field within an existing group or element. This eliminates the need to use a separate group or element solely for the title. This results in a more logical and organized layout of the registration form.
Use of the title field on the frontend
The field set as the title not only serves a function when registering new objects but is also used when presenting objects on the frontend.
The value of this field is used as, among other things:
- Title in the results overview: the text displayed below the image of an object.
- Title on the detail page: the title displayed at the top of the object's detail page.
By designating an appropriate field as the title field, you therefore also determine how objects are presented to visitors.
Other functions of 'Use as'
In addition to designating a title field, 'Use as' offers additional functions, including those for presenting data on the frontend. For example, you can set a field as a Subtitle. For this, you can use a place name, date, or other relevant data that provides additional information about the object. In this way, you can decide for yourself which registered data receives a prominent place in the presentation of your collection.
The starting point for these field settings is therefore primarily: which data do you want to use and display on the frontend, and not so much: which field do you want to use to register an object.
Important
An object type cannot be changed. Once an object has been registered, the selected object type can no longer be changed. This is a deliberate choice within KLEKSI, because each object type has its own structure with specific fields. If an object type were to be changed afterwards, there is a risk that data would be lost because certain fields do not exist in the new object type. Did you accidentally select the wrong object type? Then the object must be re-registered with the correct object type. Therefore, always carefully check that you are selecting the correct object type before creating a new object.
Incidentally, it is not possible to move individual fields separately to another element. However, you can drag complete elements to another group. In doing so, all existing data is retained.
- © Copyright KLEKSI - KLEKSI is a product of Sofco
- Privacy policy
- Cookies
- Developed by Sofco