From a0d3c2d17c7ef3ef2cad2141bbbbfea6ee3a5f14 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 12 Dec 2006 18:09:44 +0000 Subject: [PATCH] implemented a karma RFE for adding template variables to the front page of the Wiki --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/WikiMaster.pm | 2 ++ lib/WebGUI/Help/Asset_WikiMaster.pm | 10 ++++++++++ 3 files changed, 13 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index cbbd928c7..84ead602e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -17,6 +17,7 @@ - fix: Calendar templates crushing other styles. - fix: Using YUI to add the appropriate events when loading the Add/Edit Event page. Should fix the strange IE bugs. + - RFE: Add wiki page variables to Wiki_Master.pm diff --git a/lib/WebGUI/Asset/Wobject/WikiMaster.pm b/lib/WebGUI/Asset/Wobject/WikiMaster.pm index 204bdc958..b669e66c1 100644 --- a/lib/WebGUI/Asset/Wobject/WikiMaster.pm +++ b/lib/WebGUI/Asset/Wobject/WikiMaster.pm @@ -304,6 +304,8 @@ sub view { searchLabel=>$i18n->get("searchLabel"), mostPopularUrl=>$self->getUrl("func=mostPopular"), mostPopularLabel=>$i18n->get("mostPopularLabel"), + addPageLabel=>$i18n->get("addPageLabel"), + addPageUrl=>$self->getUrl("func=add;class=WebGUI::Asset::WikiPage"), recentChangesUrl=>$self->getUrl("func=recentChanges"), recentChangesLabel=>$i18n->get("recentChangesLabel"), }; diff --git a/lib/WebGUI/Help/Asset_WikiMaster.pm b/lib/WebGUI/Help/Asset_WikiMaster.pm index 3e5cf6b59..66f8c1f35 100644 --- a/lib/WebGUI/Help/Asset_WikiMaster.pm +++ b/lib/WebGUI/Help/Asset_WikiMaster.pm @@ -226,6 +226,12 @@ our $HELP = { { 'name' => 'recentChangesLabel', }, + { + 'name' => 'addPageUrl', + }, + { + 'name' => 'addPageLabel', + }, ], fields => [ ], @@ -396,6 +402,10 @@ our $HELP = { namespace => "Asset_WikiMaster", tag => "wiki master search box variables" }, + { + namespace => "WebGUI", + tag => "pagination template variables" + }, ], variables => [ {