aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-06-01 21:32:51 -0400
committerJoey Hess <joey@kitenet.net>2012-06-01 21:32:51 -0400
commitaa9c867061dd11022853aaef711452aee80905f5 (patch)
tree33a94506b564d2fcf7617b797fe4598d218ab3eb /doc
parent73136f100f627e5982e06a2841e8cd086c38ef7f (diff)
parent8aaf5790b8e9759c61e15e1192855cae6811f3a1 (diff)
downloadikiwiki-aa9c867061dd11022853aaef711452aee80905f5.tar
ikiwiki-aa9c867061dd11022853aaef711452aee80905f5.tar.gz
Merge branch 'master' of ssh://git.ikiwiki.info
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/Add_basename_in_edittemplate.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/todo/Add_basename_in_edittemplate.mdwn b/doc/todo/Add_basename_in_edittemplate.mdwn
new file mode 100644
index 000000000..6f5b0569f
--- /dev/null
+++ b/doc/todo/Add_basename_in_edittemplate.mdwn
@@ -0,0 +1,8 @@
+I wanted to produce an external link from a ikiwiki Subpage based on
+the *basename* of the Subpage. So I added the following code to the
+edittemplate plugin:
+
+ my ($basename) = $page =~ m!.*/(.*)!;
+ $template->param(basename => $basename || $page);
+
+Is there any other way I could have achieved this?