aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/templates/src/usertemplates/some_useful_tags
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-01-21 22:00:33 +0100
committerKevin Chabowski <kevin@kch42.de>2012-01-21 22:00:33 +0100
commita36e46d44db24622eeed4438342dfdbd98a28727 (patch)
tree189748224c65613991f9975feafb60b7d543b29e /ratatoeskr/templates/src/usertemplates/some_useful_tags
parenteaabdafbcbad712a82878c8a08e0b8b097cae2be (diff)
downloadratatoeskr-cms-a36e46d44db24622eeed4438342dfdbd98a28727.tar.gz
ratatoeskr-cms-a36e46d44db24622eeed4438342dfdbd98a28727.tar.bz2
ratatoeskr-cms-a36e46d44db24622eeed4438342dfdbd98a28727.zip
Setup script and clean config file.
Diffstat (limited to 'ratatoeskr/templates/src/usertemplates/some_useful_tags')
-rw-r--r--ratatoeskr/templates/src/usertemplates/some_useful_tags20
1 files changed, 20 insertions, 0 deletions
diff --git a/ratatoeskr/templates/src/usertemplates/some_useful_tags b/ratatoeskr/templates/src/usertemplates/some_useful_tags
new file mode 100644
index 0000000..091e969
--- /dev/null
+++ b/ratatoeskr/templates/src/usertemplates/some_useful_tags
@@ -0,0 +1,20 @@
+<ste:comment>
+<ste:current_section /> returns the current section name. If the current viewed site is a single article it will return the articles section name. If the section could not be determined, nothing will be returned.
+</ste:comment>
+<ste:mktag name="current_section">
+ <ste:if>
+ $current[section]
+ <ste:then>$current[section][name]</ste:then>
+ <ste:else>
+ <ste:if>
+ $current[article]
+ <ste:then>$current[article][section][name]</ste:then>
+ </ste:if>
+ </ste:else>
+ </ste:if>
+</ste:mktag>
+<ste:mktag name="menu_elem" mandatory="section|current_section">
+ <li?{~{$_tag_parameters[current_section]|eq|$_tag_parameters[section]}| class="active"|}>
+ <a href="$rel_path_to_root/$language/<ste:escape>$_tag_parameters[section]</ste:escape>"><ste:tagcontent /></a>
+ </li>
+</ste:mktag> \ No newline at end of file