EasyDNNnews - Custom fields
EasyDNNsolutions
All custom fields are available through the common token - , but each custom field can also be accessed individually by its token. Tokens for each custom field are visible in the module interface. The common token is added in the all HTML templates, but it can be replaced with tokens for each field.
These are the necessary steps for using custom fields in EasyDNNnews module:
- Create custom fields
- Currency setup (if necessary)
- Create groups and add custom fields to them
- Adjust settings for custom fields (Settings > 19. Custom fields)
Custom fields can be created in Dashboard > Custom fields
The following types of custom fields are possible to create:
- Textbox
- Text
- Rich Text (HTML)
- Integer
- Decimal
- Money
- Checkbox
- MultiControls
- Drop Down list
- Radio Button list
- Checkbox list
Instructions for creating a basic Texbox > text field
Control basic setup
Name – the name of the custom field
Token ID – an unique token for the custom field
Default value – the default value of the field
Control label options
Show label – when this option is ON then the label is displayed in the view mode
Field label – the text of the label
Field help text – the text of the help label
Validation
Field required – when this option is ON then the field is required
Error message – the text of the error message
Other options
Active – if this option is ON then the field is visible in the add/edit form
Hide field – if this option is ON then the field is not visible in the view mode, it is visible only when editing an article. This only applies to the common token.
2. Currency setup
If the type of a custom field is money, then is necessary to set the default currency. If more than one language is used on the portal, then is also necessary to set the currency for each language and their exchange rates.
3. Creating of a Custom field group
After creating of custom fields it is necessary to create a group and add custom fields in it. It is possible to create more groups and all custom fields are available for adding in all groups.
Creating of a group4. Custom fields settings
Name – the name of the group
Description – the description of the group
Once the group is created, it is necessary to add the previously created custom fields to this group (Edit custom fields group). To add a custom field to the group, it is necessary to click on the link „Add to group“. Then the custom field is no longer on the list of available fields for adding to the group, but it displayed on the list of fields in the group. The custom field can be removed from the group by clicking on the link “Remove from group”.
Settings > 19. Custom fields
Custom fields in the edit form
Custom fields in an article