File modules/cms/ui/themes/default/html/views/README.md

Last commit: Mon Feb 24 18:36:11 2020 +0100	Jan Dankert	Documentation added.
1 # OpenRat CMS Views 2 3 All views are desribe within a XML file with the extension `.tpl.src.xml`. 4 5 These views are compiled to `.php` files. 6 7 All XML files are linked to the [XSD schema](../../../../../../template_engine/components/README.md), this makes the creation of template files more simple. 8 9 ## Finding the view 10 11 Every request has an 'action' and a 'subaction'. 12 13 The matching template is `html/views/<action>/<subaction>.src.xml` 14 15 ## Components 16 17 The following namespaces are available for the source xml files: 18 19 - `http://www.openrat.de/template` for special CMS components. 20 - `http://www.w3.org/1999/xhtml` for HTML5 components. 21 22 ## Variables 23 24 - `${variable.name}` outputs a data variable 25 - `#{messagekey}` outputs a i18n message 26 - `%{config/subconfig/value}` outputs a configuration value
Download modules/cms/ui/themes/default/html/views/README.md
History Mon, 24 Feb 2020 18:36:11 +0100 Jan Dankert Documentation added. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.