openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4cf3cce5d8f9dba61c6894a7a5a122dad6325b4f
parent 7e71b3a27e6fb9e01e8e3c85a1a3a20d7e6455dd
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 31 Jul 2014 23:58:58 +0200

In der "Info"-View die Id anzeigen.

Diffstat:
action/ElementAction.class.php | 11+++++++++++
action/TemplateAction.class.php | 1+
themes/default/templates/element/info.tpl.src.xml | 22++++++++++++++++++++++
themes/default/templates/template/info.tpl.src.xml | 12++++++++++--
4 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/action/ElementAction.class.php b/action/ElementAction.class.php @@ -148,6 +148,17 @@ class ElementAction extends Action $this->setTemplateVar('type',$this->element->type); } + + + /** + * Auswahlmaske f�r weitere Einstellungen zum Template-Element. + * + */ + function infoView() + { + $this->setTemplateVar('id' ,$this->element->elementid ); + $this->setTemplateVar('name',$this->element->name ); + } /** * Auswahlmaske f�r weitere Einstellungen zum Template-Element. diff --git a/action/TemplateAction.class.php b/action/TemplateAction.class.php @@ -172,6 +172,7 @@ class TemplateAction extends Action } $this->setTemplateVar('pages',$pages); + $this->setTemplateVar('id' ,$this->template->templateid); } diff --git a/themes/default/templates/element/info.tpl.src.xml b/themes/default/templates/element/info.tpl.src.xml @@ -0,0 +1,21 @@ +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <table> + <row class="data"> + <column colspan="1"> + <text key="id" /> + </column> + <column> + <text var="id" /> + </column> + </row> + <row class="data"> + <column colspan="1"> + <text key="name" /> + </column> + <column> + <text var="name" /> + </column> + </row> + </table> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/template/info.tpl.src.xml b/themes/default/templates/template/info.tpl.src.xml @@ -1,14 +1,22 @@ <output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> <table> - <row class="headline"> + <row class="data"> + <column colspan="1"> + <text key="id" /> + </column> <column> + <text var="id" /> + </column> + </row> + <row class="headline"> + <column colspan="2"> <text key="pages"></text> </column> </row> <list list="pages" value="name" key="pageid"> <row class="data"> - <column> + <column colspan="2"> <image icon="page"></image> <link action="main" subaction="page" id="var:pageid" target="cms_main"> <text var="name"></text>