From: http://jmtd.livejournal.com/ Date: Sun, 30 Oct 2011 21:22:29 +0000 (-0400) Subject: Added a comment: override/edit `page.tmpl` X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a8beb5f0453b81895b3c3e796bbe816b79fefeb;p=ikiwiki.git Added a comment: override/edit `page.tmpl` --- diff --git a/doc/forum/Can_I_change_the_default_menu_items__63__/comment_1_fac71839175ba2868b8b54f233425a16._comment b/doc/forum/Can_I_change_the_default_menu_items__63__/comment_1_fac71839175ba2868b8b54f233425a16._comment new file mode 100644 index 000000000..a909b88f7 --- /dev/null +++ b/doc/forum/Can_I_change_the_default_menu_items__63__/comment_1_fac71839175ba2868b8b54f233425a16._comment @@ -0,0 +1,37 @@ +[[!comment format=mdwn + username="http://jmtd.livejournal.com/" + ip="188.222.50.68" + subject="override/edit `page.tmpl`" + date="2011-10-30T21:22:29Z" + content=""" +I'm looking for a way to change the RecentChanges, Preferences, Branchable, Comment menu items from my wiki page. I can see that the value for these items are set in template variables. Is there a way I can change these variables? If so can you tell me how? + +Thanks, + +Maria + +> You need to define a `templatedir` and put a copy of your current version of ikiwiki's `page.tmpl` file into that directory. Then, edit around line 62 or thereabouts, e.g. + +
  • \" rel=\"nofollow\">Edit
  • + + + -
  • \">RecentChanges
  • + +
  • \">Recent Changes
  • +
    + + -
  • \">History
  • + +
  • \">Site history
  • +
    + + -
  • \">Source
  • + +
  • \">View Source
  • +
    + + -
  • \">Preferences
  • + +
  • \">Your Preferences
  • +
    + + + +> — [[Jon]] +"""]]