diff options
author | http://jmtd.livejournal.com/ <http://jmtd.livejournal.com/@web> | 2011-10-30 17:22:29 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2011-10-30 17:22:29 -0400 |
commit | 8a8beb5f0453b81895b3c3e796bbe816b79fefeb (patch) | |
tree | 248148e92829302125c2a941f2f41a2b931f23be /doc/forum/Can_I_change_the_default_menu_items__63__ | |
parent | bf140814ae045b14b957eab1257861c1c5774c10 (diff) | |
download | ikiwiki-8a8beb5f0453b81895b3c3e796bbe816b79fefeb.tar ikiwiki-8a8beb5f0453b81895b3c3e796bbe816b79fefeb.tar.gz |
Added a comment: override/edit `page.tmpl`
Diffstat (limited to 'doc/forum/Can_I_change_the_default_menu_items__63__')
-rw-r--r-- | doc/forum/Can_I_change_the_default_menu_items__63__/comment_1_fac71839175ba2868b8b54f233425a16._comment | 37 |
1 files changed, 37 insertions, 0 deletions
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. + + <li><a href=\"<TMPL_VAR EDITURL>\" rel=\"nofollow\">Edit</a></li> + </TMPL_IF> + <TMPL_IF RECENTCHANGESURL> + -<li><a href=\"<TMPL_VAR RECENTCHANGESURL>\">RecentChanges</a></li> + +<li><a href=\"<TMPL_VAR RECENTCHANGESURL>\">Recent Changes</a></li> + </TMPL_IF> + <TMPL_IF HISTORYURL> + -<li><a href=\"<TMPL_VAR HISTORYURL>\">History</a></li> + +<li><a href=\"<TMPL_VAR HISTORYURL>\">Site history</a></li> + </TMPL_IF> + <TMPL_IF GETSOURCEURL> + -<li><a href=\"<TMPL_VAR GETSOURCEURL>\">Source</a></li> + +<li><a href=\"<TMPL_VAR GETSOURCEURL>\">View Source</a></li> + </TMPL_IF> + <TMPL_IF PREFSURL> + -<li><a href=\"<TMPL_VAR PREFSURL>\">Preferences</a></li> + +<li><a href=\"<TMPL_VAR PREFSURL>\">Your Preferences</a></li> + </TMPL_IF> + <TMPL_IF ACTIONS> + <TMPL_LOOP ACTIONS> + +> — [[Jon]] +"""]] |