init_profile
4.4.3Tag {init_profile} allows developers to load a defined profile data.
Parameters
- name - variable name where the returned data is saved. Default value is "profile".
- profile - the name of the profile which defines the data or
- profile_id - the ID of the profile which defines the data.
- id - the ID of the table row from where the data is read.
- readonly_fields - fields for which only the value is returned.
Attributes
- id - the ID of the profile used.
- table - the table name from where data is read.
- name - the name of the profile used.
- title - the translation of the profile used.
- all - array of profile data.
- results - array of profile fields:
- value - the field value.
- type - type of the field.
- is_required - this value is 1 if the field is marked as required.
- name - name of the profile field
- title - translation of the profile field name.
- html - profile fields HTML code, if the field was in the readonly_fields list, then this is only the value of the field
For a comprehensive example see the registration template in "saurus4" example
RSS