Attributes

From GruppoZenit
Jump to: navigation, search

An Attribute in Z-CMS is a container for a specific kind of contents that is included inside a Content Model.


Since a webpage can contain different kinds of contents, for example texts, dates, images, numbers, there are several different kinds of Attributes. Such specific Attributes allow the CMS to insert that specific contents inside the page.


Attributes are associated with a Content Model and identified by a unique name. A particular Content Model attribute can also be related with the attribute of another Content Model to create logical relations.


When a Content Model is selected inside the Content Manager and the user adds contents inside of it, such contents fill the attributes related to the selected Content Model.


Types of Attributes

Attributes can be of the following types:

  • Text: accepts any text and displays a text field when presented for inputting content data.
  • Description: accepts any text and displays a text-area when presented for inputting content data.
  • Integer: accepts an integer value and displays a text field when presented for inputting content data.
  • Decimal: accepts a decimal value and displays a text field when presented for inputting content data;
  • Date: accepts a valid date and displays a date picker when presented for inputting content data;
  • Time: accepts a valid time and displays a time picker when presented for inputting content data;
  • Image: provides an image file upload option when presented for inputting content data;
  • Video: provides a video file upload option when presented for inputting content data;
  • Flash: provides a flash object upload option when presented for inputting content data;
  • Unlimited: accepts large text and displays a text editor when presented for inputting content data;
  • Document: provides option for uploading a support document when presented for inputting content data;
  • Lookup: if opted, the particular attribute of the Content Model can be used to set a relation with the attribute of another Content Model to establish logical relationships between Content Models (Ex. relation between a product Content Model and a product category Content Model).
  • Collection: if opted,a link to a collection is added on to the content model and let the user add the data to the collection. With this a main record will have one or more records in the related table and the content manager will show these related child records as a list with add/edit possibility.
  • Boolean: This attribute accepts Boolean values "true" or “false”. There is possibility to show Checkbox or radio button or combo box to show the attribute in content manger part.
  • Bridge: It is possible to have relationship between content models in zcms using lookups. Bridge is an enhanced feature of this when a record has relation with different entries in another table like colors of a product, this can be used. For this a content model with lookup to both tables are needed and the same will be used as bridge in main content model. Then the other table records will be shown as checkboxes in content manager of main content and user can check using the checkbox to specify which are related data.
  • Media : When this is selected the attribute in content manager will have possibility to select a media item from media library.

See also

Personal tools
Namespaces

Variants
Actions
Toolbox