save_profile
4.4.3Tag {save_profile} allows developers to save defined profile data.
Parameters
- name - variable name where the saved data row ID is saved, this is 0 if there was errors when saving.
- 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 where the data is saved, if missing a new row will be created.
- fields - array of field name and value pairs to be saved. Only active fields of the profile will be saved.
- fieldname1
- fieldname2
- etc - extra fields and values to save, which are not defined in the profile
- on_create - allows to publish all objects immediately. If the parameter has value "on_create=publish", then a created object is published immediately. Default value is "hide". 4.4.6
- parent - the object's (section, article, asset etc) ID number where to save the new object. If parent is not defined, then current page ID is used. Used only if the profile is CMS object. 4.4.6
For a comprehensive example see the registration template in "saurus4" example
RSS