template::head::add_meta (public)
template::head::add_meta [ -http_equiv http_equiv ] [ -name name ] \ [ -scheme scheme ] [ -content content ] [ -lang lang ]
Defined in packages/acs-templating/tcl/head-procs.tcl
Add a meta tag to the head section of the document to be returned to the users client. A meta tag with a given name or http-equiv may only be added once; subsequent calls to add_meta will replace the existing entry. You must supply either name or http_equiv.
- Switches:
- -http_equiv (optional)
- the http-equiv attribute of the meta tag, i.e. the HTTP header which this metadata is equivalent to e.g. 'content-type'
- -name (optional)
- the name attribute of the meta tag, i.e. the metadata identifier
- -scheme (optional)
- the scheme attribute of the meta tag defining which metadata scheme should be used to interpret the metadata, e.g. 'DC' for Dublin Core (http://dublincore.org/)
- -content (optional)
- the content attribute of the meta tag, i.e. the metadata value
- -lang (optional)
- the lang attribute of the meta tag specifying the language of its attributes if they differ from the document language
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- xowiki_test_cases
Source code: variable ::template::head::metas if {$http_equiv eq "" && $name eq ""} { error "You must supply either -http_equiv or -name." } set metas($http_equiv,$name) [list $http_equiv $name $scheme $content $lang ]XQL Not present: Generic, PostgreSQL, Oracle