-
Notifications
You must be signed in to change notification settings - Fork 88
Entity Attributes
Marius edited this page Aug 22, 2014
·
4 revisions
Each entity you add needs a set of attributes that define that entity.
Like Name
, Descriptin
, Image
and so on.
If the entity is flat (one entity one table) these attributes will be called fields.
In this section of the UMC you can add as many attributes/fields as you like by clicking the Add Field/Attribute
button.
Multiple attribute types are supported. See Attribute Type for more details.
The fields / attributes will be listed in your entity admin page in the order you enter them in the UMC. If you realized you want a different order you can simple drag & drop the attributes and change their order.
For each attribute you need to fill in the following values :
- Attribute code - this should be a unique lowercase string. Just like the product attributes. With this code the attribute/field is identified in the application. Not everything can be used as an attribute code. There are some restrictions.
- Attribute label - This is the label of the attribute / field. It will be used in the backend forms, grids and in special cases on frontend.
- Attribute Type - Select the desired attribute type
- Attribute Scope - Select the attribute scope. This option is available only for EAV entities.
- Note - The text you fill in here will be added as a note under the admin field of your attribute in the entity add/edit form. Leave empty for no note.
-
Acts as name - Each entity requires a special attribute, in order to identify it. Just like you identify a product by it's name or a blog post by its title. So you need to mark one and only one attribute / field as special. The values of these attributes will be used in frontend lists, backend lists, rss feeds. Only attributes of type
text
,int
anddecimal
can behave as name. -
Required - Mark the attribute / field as being required.
image
andfile
attributes cannot be marked as required. -
Use WYSIWYG editor - This option is available only for
textarea
attributes. If you set this toYes
then you will have a WYSIWYG editor for this field in the admin add/edit form of your entity. -
Show in admin grid - You can choose to show your attribute as a column in the entity admin grid. Not all attributes are allowed in the grid.
File
,Image
andTextarea
are not allowed. - Show in frontend
- Show in widget
- Show in rss
- Options source
- Attribute code for option source
- Options in select
- Default value
- Getting started
- Compatibility
- Installation
- Features
- How to use
- Module grid
- Add/Edit form
- General Settings Tab
- Entities Tab 1. Entity - Name settings 2. Entity - Backend settings 3. Entity - Frontend settings 4. Entity - Products 5. Entity - Categories 6. Entity - Fields/Attribute
- Entity Relations Tab
- Help Tab
- Configuration
- Naming Restrictions
- Generated files
- Sample 1. UMC Config file 2. Tables 3. Backend CRUD 4. Config section 5. Fronend listing 6. Fronend view 7. Product relation 8. Category relation 9. RSS Feed 10. API 11. Widgets 12. Comments 13. Translation
- Created extensions
- Concept
- Limitations
- Issues & Support
- Release Notes
- Uninstall
- License
- Thanks