aboutsummaryrefslogtreecommitdiff
path: root/doc/index
diff options
context:
space:
mode:
authorwww-data <www-data@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-21 08:34:25 +0000
committerwww-data <www-data@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-21 08:34:25 +0000
commit6b0d11283fc4a4fa2d8c9ab558ed08cb08808682 (patch)
tree4ded7d16c6fecf0b521445c1acd6401aba741ec8 /doc/index
parentfd7e2100a044373383a0a295c08fbee42afecf59 (diff)
downloadikiwiki-6b0d11283fc4a4fa2d8c9ab558ed08cb08808682.tar
ikiwiki-6b0d11283fc4a4fa2d8c9ab558ed08cb08808682.tar.gz
web commit by JordaPolo: Request new template variable.
Diffstat (limited to 'doc/index')
-rw-r--r--doc/index/discussion.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/index/discussion.mdwn b/doc/index/discussion.mdwn
index 29333dd81..962a069d3 100644
--- a/doc/index/discussion.mdwn
+++ b/doc/index/discussion.mdwn
@@ -4,3 +4,16 @@ Note that for more formal bug reports or todo items, you can also edit the [[bug
----
How about adding ACL? So that you can control which users are allowed to read, write certain pages. The moinmoin wiki has that, and it is something, that I think is very valuable.
+
+----
+It would be interesting to have a `<TMPL_VAR BASEURL>` that would act exactly like the current `STYLEURL`, but without adding 'style.css' (`STYLEURL` could be defined in terms of `BASEURL`). This way it would be possible to have more flexible templates allowing multiple stylesheets, shortcut icons (and other images), etc.
+
+ sub baseurl (;$) { #{{{
+ my $page=shift;
+
+ return "$config{url}/" if ! defined $page;
+
+ $page=~s/[^\/]+$//;
+ $page=~s/[^\/]+\//..\//g;
+ return $page;
+ } #}}}