<tml:metadata>
Description:
Reads all meta data of the current context, i.e. all data ABOVE of the current content or above of the database or other tags. The attribute "type" determines the source of the meta data. When omitted, type="content" will be default.
Attributes:
Details:
Examples:
List of available meta data in WebTML2
In WebTML2 meta data of the current runtime environment can be evaluated per tag <tml:metadata> or per tmlscript function "this.meta()". This data is mostly related to the content document displayed but can be as well related to the content database, the current browser session an other aspects.
The following list is a complete reference of these available meta data, devided in types (defined in the attribute "type" of the meta data tag or in the first parameter of the tmlscript function "this.meta()").
type=“content"
This meta data refer to the current content document, its structure entry and the document type. As long as not specified different in the "content", the data is refered to the content document.
name | Content | since version |
| created | creation date | 2.0.0 |
| modified | date of last modification | 2.0.0 |
| title | title | 2.0.0 |
| uniquename, name, docname | unique name | 2.0.0 |
| position | position number of structure entry | 2.0.0 |
| key | content-Key | 2.0.0 |
| area | Website area | 2.0.0 |
| level | child level of structure entry in the hierarchical order | 2.0.0 |
| index | absolute indes of structure entry among the siblings entries | 2.0.0 |
| language | language code, f.e. „de“ | 2.0.0 |
| languagetitle | language, f.e. "English" | 2.0.0 |
| attachments | name of an attached file | 2.0.0 |
| doctype | name of the document type of the content document | 2.0.0 |
| siblings | number of siblings (incl. the current document) to a structure entry | 2.0.0 |
| workflow | workflow of the document type | 2.0.0 |
| status | status of the content document
„w“ - working copy
„g“ - submitted for approval
„p“ - released
„a“ - archived | 2.0.0 |
| structkey | key of the structure entry | 2.0.0 |
| version | version number | 2.0.0 |
| structtitle | title of the structure document | 2.0.1 |
| ishiddenfrom | Web elements the content document is hidden from
„nav“ - navigation elements
„search“ - search engines
„sitemap“ - sitemaps | 2.0.0 |
| visible | general visibility flag
„0“ - not visible
„1“ - visible | 2.0.0 |
| validfrom | valid date the document will be displayed from | 2.0.0 |
| validto | valid date the document will be displayed until | 2.0.0 |
| baseimage | graphic for navigation element | 2.0.0 |
| mouseoverimage | graphic for navigation element on mouseover | 2.0.0 |
| selectedimage | graphic for navigation element when content document is currently selected | 2.0.0 |
| usenavimages | flag that indicates if graphic for navigation element is enabled | 2.0.0 |
| virtuallink | URL to target document when the current content is a virtual document | 2.0.0 |
| linktarget | name of HTML frame the current document is to be opened in when chosen via link | 2.0.0 |
| htmlhead | addtional HTML head information | 2.0.0 |
| keywords | key words for content for use in search engines | 2.0.0 |
| refresh | flag that indicates if "AutoRefresh" function (automatic periodical reload of page) has been enabled | 2.0.0 |
| refreshurl | URL that will be loaded in the browser (instead of current Website) on "AutoRefresh“ | 2.0.0 |
| refreshtime | period (in seconds) for the "AutoRefresh“ function | 2.0.0 |
| trackingkeys | tracking keys for the content | 2.0.0 |
| author | author of the content | 2.0.1 |
| email | email address of the author | 2.0.1 |
| outerlayout | name of the WebTML module quoted in the document type as outer layout
Name des WebTML-Moduls, welches im Dokumententypen als äußeres Layout angegeben ist | 2.0.0 |
| innerlayout | name of the WebTML module quoted in the document type as inner layout | 2.0.0 |
type=“profile“
This meta data refer to the current user profile of the user. It is available when WGA personalisation is enabled and when the user has a profile.
name | content | since version |
| name | name of the user/the profile | 2.0.1 |
| type | type of the profile document, i.e. type of its creation
1 – automatically generated
2 – profile with user-defined login
3 – database login related profile | 2.0.1 |
| lastaccess | date of last access | 2.0.1 |
| lastsessionid | ID of the current user session (i.e. last access) | 2.0.1 |
| lastsessiondate | start date of current user session (i.e. last access) | 2.0.1 |
| lastsessionhits | hits in the current user session (i.e. last access) | 2.0.1 |
| prevsessionid | ID of previous user session | 2.0.1 |
| prevsessiondate | start date of previous user session | 2.0.1 |
| prevsessionhits | hits in previous user session | 2.0.1 |
| hits | total hits of this user | 2.0.1 |
| sessions | number of user sessions | 2.0.1 |
| client | identification of browser client | 2.0.1 |
| languages | languages the browser client accepts | 2.0.1 |
| login | database login (user name) last used | 2.0.1 |
| trackingkeys | tracking keys of the last 50 pages visited | 2.0.1 |
type=“database“ (or type=“db“ - since 2.1.2)
These meta data refer to the current content database.
name | content | since version |
| title | title of database | 2.0.0 |
| path | path information of database | 2.0.0 |
| type | type of database (implementation) | 2.0.0 |
| username | user name currently logged in to this database | 2.0.0 |
| dbkey | database key | 2.0.0 |
| useraccess | access lever of currently logged in user
0 = no access
10 = reader
20 = author
30 = editor
90 = manager
According values plus 5 indicate additional designer rights. | 2.0.0 |
| titleprefix | prefix for HTML page title defined in this database | 2.0.0 |
| defaultlanguage | default language of the database | 2.0.0 |
| servername | name of the database server | 2.0.0 |
| domain | The Login-Domain this database is in | 3.0.0 |
| filecontainers | Names of all file containers in this database | 3.0.0 |
| contenttypes | Names of all content types in this database | 3.0.0 |
| cssjsmodules | Names of all css/js modules in this database | 3.0.0 |
| tmlmodules | Names of all tml modules in this database | 3.0.0 |
| areas | Names of all website areas in this database | 3.0.0 |
| languages | Names of all language definitions in this database | 3.0.0 |
type=“session“
These meta data refer to the current user session.
name | content | since version |
| start | start of session | 2.0.0 |
| lastaccess | last access | 2.0.0 |
| id | session-ID | 2.0.0 |
| language | preferred language of the user | 3.0.0 |
type=“request“
These meta data refer to the current page request.
Namename | Inhaltcontent | since version |
| url | URL of current page request. | 2.0.1 |
| wgaurl | root URL of WGA publisher without DNS name and port number | 2.0.1 |
| absolutewgaurl | root URL of WGA publisher in absolut format, including DNS name and port number | 2.0.1 |
| query_string | correspondents to CGI variable „QUERY_STRING“ | 2.0.1 |
| http_referer | correspondents to CGI variable „HTTP_REFERER“ | 2.0.1 |
| http_user_agent | correspondents to CGI variable „HTTP_USER_AGENT“ | 2.0.1 |
| http_host | correspondents to CGI variable „HTTP_HOST“ | 2.0.1 |
| path_info | correspondents to CGI variable „PATH_INFO“ | 2.0.1 |
| path_info_decoded | correspondents to CGI variable „PATH_INFO_DECODED“ | 2.0.1 |
| remote_addr | correspondents to CGI variable „REMOTE_ADDR“ | 2.0.1 |
| remote_host | correspondents to CGI variable „REMOTE_HOST“ | 2.0.1 |
| remote_user | correspondents to CGI variable „REMOTE_USER“ | 2.0.1 |
| request_method | correspondents to CGI variable „REQUEST_METHOD“ | 2.0.1 |
| server_protocol | correspondents to CGI variable „SERVER_PROTOCOL“ | 2.0.1 |
| server_port | correspondents to CGI variable „SERVER_PORT“ | 2.0.1 |
| server_name | correspondents to CGI variable „SERVER_NAME“ | 2.0.1 |
|