Document Resource Tags
Right about now you may be wondering how Etomite can make your site development endeavor a more productive and exciting experience. There are several built-in Etomite resources which can make working with dynamic content a lot easier and we'll sample some of those here.
Etomite stores all document resources in the site_content database table and we can access any of the available data fields using the following resource tags. Each tag is followed by a brief explanation of the corresponding data fields general purpose. It should be noted, however, that only those fields fields requested in the database query will be available and several of the API functions only retrieve a subset of these fields by default. To display one of these data fields within a page template, document, or chunk, you would use the document tag format, [ *field* ], and the parser will replace the tag with the data fields current value. As an example, by placing the [ *pagetitle* ] tag here in this sentence the parser will display Document Tags, the title of this page.
| Column | Description |
|---|---|
| id | Returns the ID of the current page |
| type | Currently Document or Reference (web link), but could be expanded in future releases |
| contentType | This is the documents content-type which can be used to used for meta tag generation |
| pagetitle | Returns the page title of the current page |
| longtitle | Returns the long title of the current page |
| description | Returns the description of the current page |
| alias | The documents Alias name |
| published | Whether the document is published or unpublished |
| pub_date | A unix timestamp which determines when to publish a document when set |
| unpub_date | A unix timestamp which determines when to unpublish a document when set |
| parent | The current documents parent in the document tree |
| isfolder | Whether this document is also a parent folder which can have child documents |
| content | Returns the content of the current page |
| richtext | Whether or not to use a WYSIWYG editor for maintaining this document |
| template | The page template to use when rendering this document |
| menuindex | This index is used for ordering within the document tree as a sub-sort of the documents parent |
| searchable | Whether this document should be included in site searches, based on snippet logic |
| cacheable | Whether this document should be cached |
| createdby | The internalKey id of the user who created this document |
| createdon | Unix timestamp representing when this document was originally created |
| editedby | The internalKey id of the user who last edited this document |
| editedon | Unix timestamp representing when this document was last edited |
| deleted | Whether this document is flagged to be purged from the database |
| deletedon | Unix timestamp representing when this document was flagged as deleted |
| deletedby | The internalKey id of the user who flagged as deleted |
| authenticate | Whether or not user authentication of this document should be performed by the parser or via snippet logic |
| showinmenu | Boolean flag [0|1] which is used by several API functions, primarily to determine whether or not a document should be included in a menu. |
