]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Can_I_change_the_default_menu_items__63__/comment_1_fac71839175ba2868b8b54f233425a16._comment
Added a comment: override/edit `page.tmpl`
[ikiwiki.git] / doc / forum / Can_I_change_the_default_menu_items__63__ / comment_1_fac71839175ba2868b8b54f233425a16._comment
1 [[!comment format=mdwn
2  username="http://jmtd.livejournal.com/"
3  ip="188.222.50.68"
4  subject="override/edit `page.tmpl`"
5  date="2011-10-30T21:22:29Z"
6  content="""
7 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?
8
9 Thanks,
10
11 Maria
12
13 > 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.
14
15     <li><a href=\"<TMPL_VAR EDITURL>\" rel=\"nofollow\">Edit</a></li>
16     </TMPL_IF>
17     <TMPL_IF RECENTCHANGESURL>
18     -<li><a href=\"<TMPL_VAR RECENTCHANGESURL>\">RecentChanges</a></li>
19     +<li><a href=\"<TMPL_VAR RECENTCHANGESURL>\">Recent Changes</a></li>
20     </TMPL_IF>
21     <TMPL_IF HISTORYURL>
22     -<li><a href=\"<TMPL_VAR HISTORYURL>\">History</a></li>
23     +<li><a href=\"<TMPL_VAR HISTORYURL>\">Site history</a></li>
24     </TMPL_IF>
25     <TMPL_IF GETSOURCEURL>
26     -<li><a href=\"<TMPL_VAR GETSOURCEURL>\">Source</a></li>
27     +<li><a href=\"<TMPL_VAR GETSOURCEURL>\">View Source</a></li>
28     </TMPL_IF>
29     <TMPL_IF PREFSURL>
30     -<li><a href=\"<TMPL_VAR PREFSURL>\">Preferences</a></li>
31     +<li><a href=\"<TMPL_VAR PREFSURL>\">Your Preferences</a></li>
32     </TMPL_IF>
33     <TMPL_IF ACTIONS>
34     <TMPL_LOOP ACTIONS>
35
36 > — [[Jon]]
37 """]]