init_document
Tag {init_document} displayes detailed information of one document.
Parameters
- id - ID number of the document to return
- name - variable name where the returned data is saved. Default value is "document".
- buttons - defines which action buttons are displayed to the site editor. Values can be "new,edit,hide,move,delete".
- 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.0.2
Attributes
- id - ID number of the document.
- parent_id - ID number of parent object.
- title - title of the document.
- is_selected - value is 1 in case of active document, 0 otherwise.
- buttons - action-buttons, available only for editors.
- date - date of the document.
- fdate - date of the document in database default format, eg yyyy-mm-dd.
- datetime - date and time of the document, format dd.mm.yyyy hh:mm. 4.4.1
- fdatetime - date and time of the document in database format, eg yyyy-mm-dd hh:mm:ss. 4.4.1
- download_link - hyperlink for downloading the document.
- filename - name of the document.
- description - description of the document.
- size - size of the document in bytes.
- size_formated - size of the document in bytes. Formatted.
- author - author of the document.
- last_modified - objects last modified time.
This functionality is deprecated in version 4, please use changed_time instead. - class - class name of the object.
- hit_count - returns page load count of the object. 3.3.1
- comment_link - the link to the comment board of an document. 3.3.9
- comment_title - the title of the link to the comment board of an document (system word). 3.3.9
- add_comment_link - the hyperlink to the "add comment" form. 3.3.9
- add_comment_title - the title of the link to the "add comment" form. 3.3.9
- created_user_id - user ID who initially created the object. 4.0.3
- created_user_name - user full name who initially created the object. 4.0.3
- changed_user_id - user ID who made the last object saving. 4.0.3
- changed_user_name - user full name who made the last object saving. 4.0.3
- created_time - creating time of the object in format dd.mm.yyyy hh:ii. 4.0.3
- fcreated_time - creating time of the object in database default format, eg yyyy-mm-dd hh:ii. 4.0.3
- changed_time - last saving time of the object in format dd.mm.yyyy hh:ii. 4.0.3
- fchanged_time - last saving time of the object in database default format, eg yyyy-mm-dd hh:ii. 4.0.3
- comment_count - the number of comments. 3.3.9 4.0.6
- last_commented_time - the last comment time in format dd.mm.yyyy hh:ii. 4.0.6
RSS