]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/using_meta_titles_for_parentlinks.html
vote for Template::Toolkit
[ikiwiki.git] / doc / todo / using_meta_titles_for_parentlinks.html
index dad1314be8d4cdb3b3c6e00b33783ba429ddcf74..6da40a415156352b8425124b7e95b3016c83d1e0 100644 (file)
@@ -1,5 +1,5 @@
 It is possible to set a Page-Title in the meta-plugin, but that one isn't
-reused in parentlinks. This patch may fix it.
+reused in parentlinks. This [[patch]] may fix it.
 
 <ul>
 <li> I give pagetitle the full path to a page.
@@ -80,16 +80,14 @@ diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
   
 ***************
 *** 289,294 ****
---- 290,323 ----
+--- 290,319 ----
         }
-  } #}}}
+  }
   
-+ sub IkiWiki::pagetitle ($;$) { #{{{
++ sub IkiWiki::pagetitle ($;$) {
 +       my $page=shift;
 +       my $unescaped=shift;
 + 
-+       print "debug1: $page\n";
-+ 
 +       if ($page =~ m#/#) {
 +               $page =~ s#^/##;
 +               $page =~ s#/index$##;
@@ -107,14 +105,18 @@ diff -c /usr/share/perl5/IkiWiki/Plugin/meta.pm.distrib /usr/share/perl5/IkiWiki
 +               $page=~s/(__(\d+)__|_)/$1 eq '_' ? ' ' : "&#$2;"/eg;
 +       }
 + 
-+       print "debug2: $page\n";
-+ 
 +       return $page;
-+ } #}}}
++ }
 + 
   package IkiWiki::PageSpec;
   
-  sub match_title ($$;@) { #{{{
+  sub match_title ($$;@) {
 
 
 </pre>
+
+<p>
+This is actually a duplicate for
+[[bugs/pagetitle_function_does_not_respect_meta_titles]], where I'm
+following up a bit. --[[intrigeri]]
+</p>
\ No newline at end of file