From 6edaa4b432aac0214bfd0477952788524d617daf Mon Sep 17 00:00:00 2001 From: Len Kranendonk Date: Fri, 19 Mar 2004 07:29:47 +0000 Subject: [PATCH] Fixed navigation help which was removed for some reason --- docs/upgrades/upgrade_6.0.0-6.0.1.sql | 16 +++++++++++++++- lib/WebGUI/Operation/Navigation.pm | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/upgrades/upgrade_6.0.0-6.0.1.sql b/docs/upgrades/upgrade_6.0.0-6.0.1.sql index 1a247a16f..6d893e966 100644 --- a/docs/upgrades/upgrade_6.0.0-6.0.1.sql +++ b/docs/upgrades/upgrade_6.0.0-6.0.1.sql @@ -64,4 +64,18 @@ insert into international (internationalId,languageId,namespace,message,lastUpda delete from international where languageId=1 and namespace='Auth/WebGUI/Account' and internationalId=1; insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (1,1,'Auth/WebGUI/Account','WebGUI Authentication Display Account Template', 1078852836,NULL); delete from international where languageId=1 and namespace='Auth/WebGUI/Account' and internationalId=2; -insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (2,1,'Auth/WebGUI/Account','The following template variables are available for WebGUI Authentication Display Account templates. \r\n

account.form.header
The required form elements that go at the top of the display account page.

account.form.footer
The required form elements that go after the display account page form.

\r\n

account.form.karma
A read only form property displaying the amount of karma a user has.  Karma is a configurable user setting that is turned off by default  \r\n

account.form.karma.label
Internationalized text label for the karma form value  \r\n

account.form.submit
The default submit button for the display account form.

account.options
Links list of options which allow users to turn on Admin, view and edit profile, view the messageLog, etc. 

displayTitle
Page title\r\n

account.message
Any message returned by the system.  Usually displays after the form is submitted.

account.form.username
Default username form field

account.form.username.label
Default text for username form field

account.form.password
Default password form field

account.form.password.label
Default text for password form field

account.form.passwordConfirm
Default password confirm form field

account.form.passwordConfirm.label
Default text for password confirm form field

account.noform
Indicates whether or not the display account form has any visible fields

account.nofields
Default display in the case that there are no form elements to display

', 1078852836,NULL); \ No newline at end of file +insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (2,1,'Auth/WebGUI/Account','The following template variables are available for WebGUI Authentication Display Account templates. \r\n

account.form.header
The required form elements that go at the top of the display account page.

account.form.footer
The required form elements that go after the display account page form.

\r\n

account.form.karma
A read only form property displaying the amount of karma a user has.  Karma is a configurable user setting that is turned off by default  \r\n

account.form.karma.label
Internationalized text label for the karma form value  \r\n

account.form.submit
The default submit button for the display account form.

account.options
Links list of options which allow users to turn on Admin, view and edit profile, view the messageLog, etc. 

displayTitle
Page title\r\n

account.message
Any message returned by the system.  Usually displays after the form is submitted.

account.form.username
Default username form field

account.form.username.label
Default text for username form field

account.form.password
Default password form field

account.form.password.label
Default text for password form field

account.form.passwordConfirm
Default password confirm form field

account.form.passwordConfirm.label
Default text for password confirm form field

account.noform
Indicates whether or not the display account form has any visible fields

account.nofields
Default display in the case that there are no form elements to display

', 1078852836,NULL); +DELETE FROM international WHERE internationalId=842 and namespace='WebGUI' and languageId=1; +INSERT INTO international VALUES (842,'WebGUI',1,'

These macros are used to create navigation on the site.

\r\n

^H; or ^H(); - Home Link
A link to the home page of this site. In addition you can change the link text by creating a macro like this ^H(\"Go Home\");. \r\n

NOTES: You can also use the special case ^H(linkonly); to return only the URL to the home page and nothing more. Also, the .homeLink style sheet class is tied to this macro.

\r\n

^/; - System URL
The URL to the gateway script (example: /index.pl/). \r\n

^\\; - Page URL
The URL to the current page (example: /index.pl/pagename). \r\n

^Navigation(crumbTrail);
A dynamically generated crumb trail to the current page.\r\n

NOTE: The .crumbTrail style sheet class is tied to this macro.

\r\n

^Navigation(FlexMenu);
This menu macro creates a top-level menu that expands as the user selects each menu item.

\r\n

^Navigation(currentMenuVertical);
A vertical menu containing the sub-pages at the current level. By default it tracks 1 level deep.

\r\n

^Navigation(currentMenuHorizontal);
A horizontal menu containing the sub-pages at the current level.

\r\n

^Navigation(PreviousDropMenu);
Create a drop down menu containing the sub-pages at the previous level in the page tree.

\r\n

^Navigation(previousMenuVertical);
A vertical menu containing the sub-pages at the previous level. By default it will show only the first level.

\r\n

^Navigation(previousMenuHorizontal);
A horizontal menu containing the sub-pages at the previous level.

\r\n

^Navigation(rootmenu);
Creates a horizontal menu of the various roots on your system (except for the WebGUI system roots).

\r\n

^Navigation(SpecificDropMenu);
Create a drop down menu starting at a specific point in your navigation tree. The default start page is \"home\".

\r\n

^Navigation(SpecificSubMenuVertical);
Allows you to get the submenu of any page, starting with the page you specified. The default start page is \"home\" and it will show the first level.

\r\n

^Navigation(SpecificSubMenuHorizontal);
Allows you to get the submenu of any page, starting with the page you specified. The default start page is \"home\" and it will show the first level.

\r\n

^Navigation(TopLevelMenuVertical);
A vertical menu containing the main pages of the site (aka the sub-pages from the home page). By default it will show only the first level.

\r\n

^Navigation(TopLevelMenuHorizontal);
A vertical menu containing the main pages of the site (aka the sub-pages from the home page).

\r\n

^Navigation(RootTab);
Create a tab navigation system from the roots on your site (except WebGUI\'s system roots) similar to the tabs used in the tab forms (editing wobjects or pages).

\r\n

NOTE: Has two special style sheet classes: .RootTabOn{} and .RootTabOff{}. \r\n

Example:
<style> .rootTabOn { line-height: 17px; font-size: 16px; spacing: 3px; border: 1px solid black; border-bottom-width: 0px; background-color: #333333; z-index: 10000; padding: 3px 9px 5px 9px; color: white; } .rootTabOn A, .rootTabOn A:visited { color: white; font-weight: bold; text-decoration: none; } .rootTabOff { line-height: 15px; font-size: 14px; border: 1px solid black; border-bottom-width: 0px; background-color: #c8c8c8; z-index: 1000; padding: 2px 9px 2px 9px; } .rootTabOff A, .rootTabOff A:visited { color: black; text-decoration: underline; } .rootTabOff A:hover { font-weight: bold; } </style> ^RootTab;

\r\n

^Navigation(TopDropMenu);
Create a drop down menu of your top level navigation.

\r\n

^Navigation(dtree);
Create a dynamic tree menu.

\r\n

^Navigation(coolmenu);
Create a DHTML driven menu.

\r\n

^Navigation(Synopsis);
This macro allows you to get the submenu of a page along with the synopsis of each link.

\r\n

NOTES: The .synopsis_sub, .synopsis_summary, and .synopsis_title style sheet classes are tied to this macro.

\r\n

It should be noted that many of these macros can also make use of these style sheet classes:

\r\n

.selectedMenuItem
Use this class to highlight the current page in any of the menu macros. \r\n

.verticalMenu
The vertical menu (if you use a vertical menu macro). \r\n

.horizontalMenu
The horizontal menu (if you use a horizontal menu macro).

',1078477366,NULL); + +INSERT INTO help VALUES (83,'WebGUI',1098,1093,'58,WebGUI;85,WebGUI;84,WebGUI;34,WebGUI;'); +INSERT INTO help VALUES (84,'WebGUI',1094,1095,'58,WebGUI;85,WebGUI;83,WebGUI;'); +INSERT INTO help VALUES (85,'WebGUI',1096,1097,'58,WebGUI;83,WebGUI;84,WebGUI;50,WebGUI;'); + +INSERT INTO international VALUES (1098,'WebGUI',1,'Navigation, Add/Edit',1078208044,NULL); +INSERT INTO international VALUES (1093,'WebGUI',1,'

Edit Navigation lets you add and edit what are essentially \'menu templates\' -- they define what pages\' Menu Names should be included in a menu based (sometimes) on where that menu appears.

\r\n

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

\r\n

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.

\r\n

\r\n

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.

\r\n

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.

\r\n

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

\r\n\r\n

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...

\r\n

Max Depth
...which 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).

\r\n

Show System Pages
Should the menus the macro creates include System pages?
System pages: Trash, clipboard, page not found, etc.

\r\n

Show Hidden Pages
Should the menus the macro creates include pages which are marked as Hidden?

\r\n

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

\r\n

Template
This menu permits you to 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.

\r\n

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

\r\n

Preview
The Preview button allows you to view a navigation setup without actually saving it.

',1078461049,NULL); +INSERT INTO international VALUES (1094,'WebGUI',1,'Navigation, Manage',1078208044,NULL); +INSERT INTO international VALUES (1095,'WebGUI',1,'

The general idea behind the navigation system is that instead of
hardwiring all the various choices you might make into the code, the
system manages a \'library\' of these styles, just the way it does with
Snippets, Images, Templates, Page Styles, and other types of reusable
information.  You can create a new \'nav menu style\', give it a name,
and then use it anywhere on your site that you like.

\r\n

The navigation system consists of two parts:

\r\n
    \r\n
  1. The navigation editor
  2. \r\n
  3. The ^Navigation(); macro
\r\n

The easiest way to add a completely new menu to your site is to put a ^Navigation(myMenu); macro into your style.
A \"edit myMenu\" link will be displayed if \"myMenu\" is not defined.

\r\n

Note: In this example \"myMenu\" is used, but you can pick any name, as long as it is unique.

',1078462928,NULL); +INSERT INTO international VALUES (1096,'WebGUI',1,'Navigation Template',1078207966,NULL); +INSERT INTO international VALUES (1097,'WebGUI',1,'config.button 
A \"Edit / Manage\" button for this navigation item.
\r\n

page_loop
A loop containing page information.

\r\n
\r\n

page.menuTitle
The menu title of this page.

\r\n

page.title
The title of this page.

\r\n

page.urlizedTitle
The urlized title of this pagepage.url.

\r\n

page.url
The url of this page.

\r\n

page.pageId
The pageId of this page.

\r\n

page.parentId
The ParentId of this page.

\r\n

page.ownerId
The ownerId of this page.

\r\n

page.synopsis
The synopsis of this page.

\r\n

page.newWindow
A condition indicating whether this page should be opened in a new window.

\r\n

page.absDepth
The absolute depth of this page (relative to nameless root).

\r\n

page.relDepth
The relative depth of this page (relative to starting point).

\r\n

page.isCurrent
A condition indicating whether this page is current page.

\r\n

page.isHidden
A condition indicating whether this page is a hidden page.
(Note: This variable is only visible if \"Show hidden pages\" is switched on.)

\r\n

page.isSystem
A condition indicating whether this page is a system page (Trash, Clipboard, etc).
(Note: This variable is only visible if \"Show system pages\" is switched on.)

\r\n

page.isViewable
A condition indicating whether the user has permission to view it.
(Note: This variable is only visible if \"Show unprivileged pages\" is switched on.)

\r\n

page.indent
A variable containing the indent for current page. The default indent is three spaces. Use the page.indent_loop if you need a more flexible indent.

\r\n

page.indent_loop
A loop that runs page.relDepth times.

\r\n
\r\n

indent
A number representing the loop count.

\r\n

page.isRoot
A condition indication whether this page is a root page.

\r\n

page.isTop
A condition indication whether this page is a top page (daughter of root).

\r\n

page.hasDaughter
A condition indication whether this page has a daughter. In other words: It evaluates to true if this page is a mother.

\r\n

page.isMyDaughter
A condition indication whether this page is a daughter of current page.

\r\n

page.isMyMother
A condition indication whether this page is the mother of current page.

\r\n

page.mother.title
The title of the mother of this page.

\r\n

page.mother.urlizedTitle
The urlized title of the mother of this page.

\r\n

page.mother.pageId
The pageId of the mother of this page.

\r\n

page.mother.parentId
The parentId of the mother of this page.

\r\n

page.depthIs1 , page.depthIs2 , page.depthIs3 , page.depthIs4 , page.depthIsN
A condition indicating whether the depth of this page is N. This variable is useful if you want to style a certain level.

\r\n

<tmpl_if page.depthIs1>
   <img src=\"level1.gif\">
<tmpl_else>
   <img src=\"defaultBullet.gif\">
</tmpl_if>

\r\n

page.relativeDepthIs1 , page.relativeDepthIs2 , page.relativeDepthIs3 , page.relativeDepthIsN
A condition indicating whether the relative depth of this page is N.

\r\n

 

',1078207966,NULL); + diff --git a/lib/WebGUI/Operation/Navigation.pm b/lib/WebGUI/Operation/Navigation.pm index 734af20f9..9ad37111c 100644 --- a/lib/WebGUI/Operation/Navigation.pm +++ b/lib/WebGUI/Operation/Navigation.pm @@ -115,7 +115,7 @@ sub www_editNavigation { $config->{showUnprivilegedPages} = 0; $config->{'reverse'} = 0; } - my $output = helpIcon(79).'

'.WebGUI::International::get(22, 'Navigation').'

'; + my $output = helpIcon(83).'

'.WebGUI::International::get(22, 'Navigation').'

'; tie my (%tabs) , 'Tie::IxHash'; %tabs = ( properties=>{ @@ -276,7 +276,7 @@ sub www_editNavigationSave { #------------------------------------------------------------------- sub www_listNavigation { return WebGUI::Privilege::insufficient() unless (WebGUI::Privilege::isInGroup(3)); - my $output .= helpIcon(80).'

'.WebGUI::International::get(34,'Navigation').'

'; + my $output .= helpIcon(84).'

'.WebGUI::International::get(34,'Navigation').'

'; my $sth = WebGUI::SQL->read("select navigationId, identifier from Navigation order by identifier"); my $i = 0; my @row = ();