From 174e3df9eff37063997470d2d4903c91f9988c1b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 26 May 2006 04:43:18 +0000 Subject: [PATCH] edit branch help. Added a new hoverHelp field for the recursive URL set of fields. --- lib/WebGUI/AssetBranch.pm | 17 ++++---- lib/WebGUI/Help/Asset.pm | 66 ++++++++++++++++++++++++++++++++ lib/WebGUI/i18n/English/Asset.pm | 35 +++++++++++++++-- 3 files changed, 108 insertions(+), 10 deletions(-) diff --git a/lib/WebGUI/AssetBranch.pm b/lib/WebGUI/AssetBranch.pm index bdce32576..98a05a163 100644 --- a/lib/WebGUI/AssetBranch.pm +++ b/lib/WebGUI/AssetBranch.pm @@ -80,12 +80,14 @@ sub www_editBranch { my $self = shift; my $ac = WebGUI::AdminConsole->new($self->session,"assets"); my $i18n = WebGUI::International->new($self->session,"Asset"); + my $i18n2 = WebGUI::International->new($self->session,"Asset_Wobject"); return $self->session->privilege->insufficient() unless ($self->canEdit); my $tabform = WebGUI::TabForm->new($self->session); $tabform->hidden({name=>"func",value=>"editBranchSave"}); $tabform->addTab("properties",$i18n->get("properties"),9); $tabform->getTab("properties")->readOnly( -label=>$i18n->get(104), + -hoverHelp=>$i18n->get('edit branch url help'), -uiLevel=>9, -subtext=>'
'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_url"}), -value=>WebGUI::Form::selectBox($self->session, { @@ -121,7 +123,7 @@ sub www_editBranch { -value=>$self->get("isHidden"), -label=>$i18n->get(886), -uiLevel=>6, - -subtext=>'
'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_isHidden"}) + -subtext=>'
'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_isHidden"}), -hoverHelp=>$i18n->get('886 description',"Asset"), ); $tabform->getTab("display")->yesNo( @@ -134,25 +136,25 @@ sub www_editBranch { ); $tabform->getTab("display")->yesNo( -name=>"displayTitle", - -label=>$i18n->get(174), - -hoverHelp=>$i18n->get('174 description','Asset_Wobject'), + -label=>$i18n2->get(174), + -hoverHelp=>$i18n2->get('174 description'), -value=>$self->getValue("displayTitle"), -uiLevel=>5, -subtext=>'
'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_displayTitle"}) ); $tabform->getTab("display")->template( -name=>"styleTemplateId", - -label=>$i18n->get(1073), + -label=>$i18n2->get(1073), -value=>$self->getValue("styleTemplateId"), - -hoverHelp=>$i18n->get('1073 description','Asset_Wobject'), + -hoverHelp=>$i18n2->get('1073 description'), -namespace=>'style', -afterEdit=>'op=editPage;npp='.$self->session->form->process("npp"), -subtext=>'
'.$i18n->get("change").' '.WebGUI::Form::yesNo($self->session,{name=>"change_styleTemplateId"}) ); $tabform->getTab("display")->template( -name=>"printableStyleTemplateId", - -label=>$i18n->get(1079), - -hoverHelp=>$i18n->get('1079 description','Asset_Wobject'), + -label=>$i18n2->get(1079), + -hoverHelp=>$i18n2->get('1079 description'), -value=>$self->getValue("printableStyleTemplateId"), -namespace=>'style', -afterEdit=>'op=editPage;npp='.$self->session->form->process("npp"), @@ -241,6 +243,7 @@ sub www_editBranch { ); } } + $ac->setHelp('edit branch', 'Asset'); return $ac->render($tabform->print, $i18n->get('edit branch','Asset')); } diff --git a/lib/WebGUI/Help/Asset.pm b/lib/WebGUI/Help/Asset.pm index 92c8bff6b..413596929 100644 --- a/lib/WebGUI/Help/Asset.pm +++ b/lib/WebGUI/Help/Asset.pm @@ -226,6 +226,72 @@ our $HELP = { title => 'edit branch', body => 'edit branch body', fields => [ + { + title => '104', + description => 'edit branch url help', + namespace => 'Asset', + uiLevel => 9, + }, + { + title => '886', + description => '886 description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => '940', + description => '940 description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => '174', + description => '174 description', + namespace => 'Asset_Wobject', + uiLevel => 5, + }, + { + title => '1073', + description => '1073 description', + namespace => 'Asset_Wobject', + uiLevel => 5, + }, + { + title => '1079', + description => '1079 description', + namespace => 'Asset_Wobject', + uiLevel => 5, + }, + { + title => 'encrypt page', + description => 'encrypt page description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => '108', + description => '108 description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => '872', + description => '872 description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => '871', + description => '871 description', + namespace => 'Asset', + uiLevel => 6, + }, + { + title => 'extra head tags', + description => 'extra head tags description', + namespace => 'Asset', + uiLevel => 5, + }, ], related => [ ] diff --git a/lib/WebGUI/i18n/English/Asset.pm b/lib/WebGUI/i18n/English/Asset.pm index e33fa0041..f1b9b1851 100644 --- a/lib/WebGUI/i18n/English/Asset.pm +++ b/lib/WebGUI/i18n/English/Asset.pm @@ -258,15 +258,16 @@ our $I18N = { }, 'edit branch help' => { - message => q|Bring up the Edit Branch interface, to make changes to this Asset and all Assets below it|, + message => q|Bring up the Edit Branch interface, to make changes to this Asset and Assets below it|, lastUpdated => 0, context => q|Used in asset context menus.| }, 'edit branch body' => { - message => q| |, + message => q|

Edit Branch allows you to make changes to entire trees of Assets. You can change who can view Assets, who can edit Assets or you can change the templates or other display features such as SSL or whether to hide the Asset from navigations. The form will not give you editing privileges for Assets that you don't have.

+

Each field has a Yes/No button to confirm that you want to change it recursively. Simply edit the fields that you want to change and select Yes from its change confirmation, and then hit save when you're all done.

|, lastUpdated => 0, - context => q|Used in asset help.| + context => q|Used in edit branch help.| }, 'edit' => { @@ -912,6 +913,34 @@ to edit or modify that asset.

|, lastUpdated => 0, }, + 'edit branch url help' => { + message => q|

You can change the URL via two parts, the base URL (the left field) and the file url (the right field). For the base URL, there are three options:

+
+
+
Parent URL
+
Start this URL with the URL of the parent.
+
Specified Base
+
Enter in a new base URL via the field that appears when Specified Base is selected.
+
None
+
Make all Assets have a "top-level" URL.
+
+
+

There are also three options for the file URL:

+
+
+
Menu Title
+
The new URL will be based on the Asset's Menu Title field.
+
Title
+
The new URL will be based on the Asset's Title field.
+
Current URL
+
The new URL will be based on the Asset's present URL.
+
+
+

New URLs will be passed through the makeUrlCompliant function that is specific to the default language for your site.

+|, + lastUpdated => 0, + }, + 'topicName' => { message => q|Assets|, lastUpdated => 1128920336,