From 35a2e8a4f7c3d2de15ce9f014e40dc9c377844fc Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 21 Jul 2005 18:17:28 +0000 Subject: [PATCH] hover help for Navigation Asset --- lib/WebGUI/Asset/Wobject/Navigation.pm | 13 ++- lib/WebGUI/Help/Asset_Navigation.pm | 45 ++++++++ lib/WebGUI/i18n/English/Asset_Navigation.pm | 116 +++++++++++--------- 3 files changed, 119 insertions(+), 55 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Navigation.pm b/lib/WebGUI/Asset/Wobject/Navigation.pm index f86f6aad5..7a69225f8 100644 --- a/lib/WebGUI/Asset/Wobject/Navigation.pm +++ b/lib/WebGUI/Asset/Wobject/Navigation.pm @@ -87,6 +87,7 @@ sub getEditForm { -value=>$self->getValue('templateId'), -namespace=>"Navigation", -label=>$i18n->get(1096), + -hoverHelp=>$i18n->get('1096 description'), ); $tabform->hidden({ name=>"returnUrl", @@ -118,10 +119,12 @@ sub getEditForm { }, -value=>[$self->getValue("startType")], -label=>$i18n->get("Start Point Type"), + -hoverHelp=>$i18n->get("Start Point Type description"), -extras=>'id="navStartType" onChange="changeStartPoint()"' ); $tabform->getTab("properties")->readOnly( -label=>$i18n->get("Start Point"), + -hoverHelp=>$i18n->get("Start Point description"), -value=>'' ); my %options = (); @@ -145,6 +148,7 @@ sub getEditForm { ); $tabform->getTab("properties")->readOnly( -label=>$i18n->get("Relatives To Include"), + -hoverHelp=>$i18n->get("Relatives To Include description"), -value=>WebGUI::Form::checkbox({ checked=>$ancestorsChecked, name=>"assetsToInclude", @@ -194,17 +198,20 @@ sub getEditForm { ); $tabform->getTab("display")->yesNo( -name=>'showSystemPages', - -label=>WebGUI::International::get(30,'Asset_Navigation'), + -label=>$i18n->get(30), + -hoverHelp=>$i18n->get('30 description'), -value=>$self->getValue("showSystemPages") ); $tabform->getTab("display")->yesNo( -name=>'showHiddenPages', - -label=>WebGUI::International::get(31,'Asset_Navigation'), + -label=>$i18n->get(31), + -hoverHelp=>$i18n->get('31 description'), -value=>$self->getValue("showHiddenPages") ); $tabform->getTab("display")->yesNo( -name=>'showUnprivilegedPages', - -label=>WebGUI::International::get(32,'Asset_Navigation'), + -label=>$i18n->get(32), + -hoverHelp=>$i18n->get('32 description'), -value=>$self->getValue("showUnprivilegedPages") ); my $start = $self->getValue("startPoint"); diff --git a/lib/WebGUI/Help/Asset_Navigation.pm b/lib/WebGUI/Help/Asset_Navigation.pm index ca9cb8d0a..07ead7c1d 100644 --- a/lib/WebGUI/Help/Asset_Navigation.pm +++ b/lib/WebGUI/Help/Asset_Navigation.pm @@ -5,6 +5,51 @@ our $HELP = { title => '1098', body => '1093', fields => [ + { + title => '1096', + description => '1096 description', + namespace => 'Asset_Navigation', + }, + { + title => 'Start Point Type', + description => 'Start Point Type description', + namespace => 'Asset_Navigation', + }, + { + title => 'Start Point', + description => 'Start Point description', + namespace => 'Asset_Navigation', + }, + { + title => 'Ancestor End Point', + description => 'Ancestor End Point description', + namespace => 'Asset_Navigation', + }, + { + title => 'Relatives To Include', + description => 'Relatives To Include description', + namespace => 'Asset_Navigation', + }, + { + title => 'Descendant End Point', + description => 'Descendant End Point description', + namespace => 'Asset_Navigation', + }, + { + title => '30', + description => '30 description', + namespace => 'Asset_Navigation', + }, + { + title => '31', + description => '31 description', + namespace => 'Asset_Navigation', + }, + { + title => '32', + description => '32 description', + namespace => 'Asset_Navigation', + }, ], related => [ { diff --git a/lib/WebGUI/i18n/English/Asset_Navigation.pm b/lib/WebGUI/i18n/English/Asset_Navigation.pm index e354cfd48..f41e1ae1b 100644 --- a/lib/WebGUI/i18n/English/Asset_Navigation.pm +++ b/lib/WebGUI/i18n/English/Asset_Navigation.pm @@ -133,65 +133,77 @@ our $I18N = { lastUpdated => 1078208044 }, + '1096 description' => { + message => q|Choose a template to use for displaying your navigation|, + lastUpdated => 1121969610, + }, + + 'Start Point Type description' => { + message => q|Pick where the navigation should start choosing pages, via a specific URL, relative to the current +URL or at a page relative to the root page.|, + lastUpdated => 1121969610, + }, + + 'Start Point description' => { + message => q|Based on the Start Point Type, where the navigation will begin choosing pages.|, + lastUpdated => 1121969610, + }, + + 'Ancestor End Point description' => { + message => q|If the Start Point Type is set to relative to Current URL, how many levels above the current URL +the navigation should start.|, + lastUpdated => 1121969610, + }, + + 'Relatives To Include description' => { + message => q|The Navigation Asset can filter out pages that you do not want to be in the navigation. Select +all of the classes of pages that should be included:
+
+
Ancestors
+
Pages higher than the current page in the tree.
+
Self
+
The current page.
+
Siblings
+
Pages at the same level as the current URL.
+
Descendents
+
Pages lower than the current page in the tree.
+
Pedigree
+
When using a different start page, this option selects the Ancestors, Siblings and Descendents of that page.
|, + lastUpdated => 1121969610, + }, + + 'Descendant End Point description' => { + message => q|The number of levels down from the Start Point where should the navigation end.|, + lastUpdated => 1121969610, + }, + + '30 description' => { + message => q|Should the menus the macro creates include System pages such as Trash, Clipboard, Page not found, etc.? If you want Admins or Content Managers to be able to see System Pages, then select Yes and use the Navigation Template to hide them.|, + lastUpdated => 1121969610, + }, + + '31 description' => { + message => q|Should the menus include pages which are marked as Hidden? Similar to +System Pages, if you want certain groups to be able to see Hidden Pages, then select Yes and use +the Navigation Template to determine who can see them in the menu.

+

NOTE: Any user in Admin mode will automatically be able to see all pages that they can edit regardless of whether they are hidden or the value of this property.|, + lastUpdated => 1121969610, + }, + + '32 description' => { + message => q|Should the menus the macro creates include pages which the currently logged-in user does not have the privilege to view?|, + lastUpdated => 1121969610, + }, + + '1093' => { message => q|

The Add/Edit Navigation form allows you to do choose the which pages are shown in your site navigation, and how to display them. Some of the default Navigation templates that come with WebGUI are vertical, horizontal and crumbtrail. These templates can often be styled via CSS to match your site's design, instead of rewriting the templates.

-

Identifier
-This is the (unique) label you will later use to specify this Navigation definition in a ^Navigation(); macro. - -

Base Page
-This identifies the spot in the Page Tree where the macro should commence listing pages. The first three choices will create 'absolute' menus -- ones which will display the same pages no matter which page you use the macro from. - -

The next four create 'relative' menus -- ones in which the items which will be displayed depend on the location in the page tree of the page in which you use the macro.

- -

Use the 'Add new value' option if you want to specify a custom starting page. You can refer to a starting page by its urlized title or its pageId.

- -

Return a Loop With
-This determines which pages relative to the base page will be included in the menu which the macro creates.

- - -

Stop traversing when reaching level
-This allows you to prune a menu -- in either direction -- when it reaches a specific level in the page tree. It's slightly different in effect than Max Depth. - -

Max Depth
-This allows you to prune a menu -- in either direction -- when it reaches a number of levels in the page tree. 'Stop Traversing' is absolute; 'Max Depth' is relative. Presumably, if you set both, whichever one takes effect first will be the active limit (that is, they're OR'd together). - -

Show System Pages
-Should the menus the macro creates include System pages such as Trash, Clipboard, Page not found, etc.? If you want Admins or Content Managers to be able to see System Pages, then select Yes and use the Navigation Template to hide them. - -

Show Hidden Pages
-Should the menus include pages which are marked as Hidden? Similar to -System Pages, if you want certain groups to be able to see Hidden Pages, then select Yes and use -the Navigation Template to determine who can see them in the menu.

-

NOTE: Any user in Admin mode will automatically be able to see all pages that they can edit regardless of whether they are hidden or the value of this property. - -

Show Unprivileged Pages
-Should the menus the macro creates include pages which the currently logged-in user does not have the privilege to view? - -

Template
-Select a template which is used to style the output created by the macro -- if you need the same collection of pages in multiple formats, you'll need to create multiple Navigation entries with (slightly) different names; the Copy Navigation button is useful for this. - -

Reverse Output
-When this option is switched on, the menu will be in reverse order. - -

Preview
-The Preview button allows you to view a navigation setup without actually saving it. - |, - lastUpdated => 1116701049, + lastUpdated => 1121969647, }, '1096' => {