summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-30 15:37:12 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-30 15:37:12 -0500
commit4c18058dfb52ae32c55e27efda380f1df0a4c872 (patch)
tree8be3430ef1d07fca63781c5ba9a9223a44967cbe /doc
parent5ec8fc935206072e82a2af283b151ebdd5992929 (diff)
possible implementation
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/Inline_plugin_option_to_show_full_page_path.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/todo/Inline_plugin_option_to_show_full_page_path.mdwn b/doc/todo/Inline_plugin_option_to_show_full_page_path.mdwn
index 4eb1f8a05..ab9cd61e4 100644
--- a/doc/todo/Inline_plugin_option_to_show_full_page_path.mdwn
+++ b/doc/todo/Inline_plugin_option_to_show_full_page_path.mdwn
@@ -10,3 +10,19 @@ The only other way I can think of making this work would be to set the title of
Cheers,
[[AdamShand]]
+
+> One way to approach it would be to add a field to the template
+> that contains the full page name. Then you just use a modified
+> `inlinepage.tmpl`, that uses that instead of the title. --[[Joey]]
+
+diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
+index 59eabb6..82913ba 100644
+--- a/IkiWiki/Plugin/inline.pm
++++ b/IkiWiki/Plugin/inline.pm
+@@ -229,6 +229,7 @@ sub preprocess_inline (@) { #{{{
+ $template->param(content => $content);
+ }
+ $template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
++ $template->param(page => $page);
+ $template->param(title => pagetitle(basename($page)));
+ $template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));