Set the name of the template the element should be based on.
Set the element on active (1) or inactive (0).
Set the element name. This will be the name in the CMS.
Set the name of the element creator. Used to indicate that the element was created by a website visitor.
Add a field value by field name. The value will be inserted for the default language if not specified otherwise. //
Write the element to the CMS. Returns the newly created element.