aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttp://tbm.myopenid.com/ <http://tbm.myopenid.com/@web>2012-03-26 18:15:25 -0400
committeradmin <admin@branchable.com>2012-03-26 18:15:25 -0400
commit0d7c438c725872fceed1e3ad00fcd82d8248c50c (patch)
treef6b9c4136b75de068a67191c84e9f8764912dc18 /doc
parent6fd9fc9c98a28917e8a63e67352e786e40b8ca6f (diff)
downloadikiwiki-0d7c438c725872fceed1e3ad00fcd82d8248c50c.tar
ikiwiki-0d7c438c725872fceed1e3ad00fcd82d8248c50c.tar.gz
suggest a solution
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/Add_space_before_slash_in_parent_links.mdwn58
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/todo/Add_space_before_slash_in_parent_links.mdwn b/doc/todo/Add_space_before_slash_in_parent_links.mdwn
index 536980ea8..afb0d5576 100644
--- a/doc/todo/Add_space_before_slash_in_parent_links.mdwn
+++ b/doc/todo/Add_space_before_slash_in_parent_links.mdwn
@@ -81,3 +81,61 @@ This is what I do on my site for example. -- [[Jon]]
>
> (Admittedly, `page.tmpl` is the hardest to maintain a fork of, because it
> tends to change whenever a new plugin is added...) --[[smcv]]
+
+----
+
+Here is a solution which doesn't require people to create their own `page.tmpl`. The solution uses an HTML list together with CSS to draw the separator and can therefore be controlled by users. This change also allows people to control other aspects of how the parentlinks are displayed. The only drawback is that lynx/w3m don't seem to deal with this CSS feature, but I don't think it's too bad since the parentlinks will simply show up as a list.
+
+(I see that the other patch changes templates/misc.tmpl and templates/recentchanges.tmpl for INDEXLINK. I haven't done that but can do so if [[Joey]] likes this approach.)
+
+--[[tbm]]
+
+ diff --git a/doc/style.css b/doc/style.css
+ index 35a1331..b726365 100644
+ --- a/doc/style.css
+ +++ b/doc/style.css
+ @@ -129,6 +129,23 @@ pre {
+ overflow: auto;
+ }
+
+ +ul.parentlinks li:after {
+ +display: marker;
+ +content: "/ ";
+ +background: none;
+ +}
+ +
+ +ul.parentlinks li {
+ +display: inline;
+ +}
+ +
+ +ul.parentlinks
+ +{
+ +padding-left: 0;
+ +display:inline;
+ +list-style-type: none;
+ +}
+ +
+ div.recentchanges {
+ border-style: solid;
+ border-width: 1px;
+ diff --git a/templates/page.tmpl b/templates/page.tmpl
+ index 770ac23..f54493e 100644
+ --- a/templates/page.tmpl
+ +++ b/templates/page.tmpl
+ @@ -44,11 +44,15 @@
+ <TMPL_IF HTML5><section class="pageheader"><TMPL_ELSE><div class="pageheader"></TMPL_IF>
+ <TMPL_IF HTML5><header class="header"><TMPL_ELSE><div class="header"></TMPL_IF>
+ <span>
+ +<TMPL_IF PARENTLINKS>
+ <span class="parentlinks">
+ +<ul class="parentlinks">
+ <TMPL_LOOP PARENTLINKS>
+ -<a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>/
+ +<li><a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a></li>
+ </TMPL_LOOP>
+ +</ul>
+ </span>
+ +</TMPL_IF>
+ <span class="title">
+ <TMPL_VAR TITLE>
+ <TMPL_IF ISTRANSLATION>