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.
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
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.
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
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.
^Navigation(currentMenuVertical);
A vertical menu containing the sub-pages at the current level. By default it tracks 1 level deep.
^Navigation(currentMenuHorizontal);
A horizontal menu containing the sub-pages at the current level.
^Navigation(PreviousDropMenu);
Create a drop down menu containing the sub-pages at the previous level in the page tree.
^Navigation(previousMenuVertical);
A vertical menu containing the sub-pages at the previous level. By default it will show only the first level.
^Navigation(previousMenuHorizontal);
A horizontal menu containing the sub-pages at the previous level.
^Navigation(rootmenu);
Creates a horizontal menu of the various roots on your system (except for the WebGUI system roots).
^Navigation(SpecificDropMenu);
Create a drop down menu starting at a specific point in your navigation tree. The default start page is \"home\".
^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.
^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.
^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.
^Navigation(TopLevelMenuHorizontal);
A vertical menu containing the main pages of the site (aka the sub-pages from the home page).
^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).
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;
^Navigation(TopDropMenu);
Create a drop down menu of your top level navigation.
^Navigation(dtree);
Create a dynamic tree menu.
^Navigation(coolmenu);
Create a DHTML driven menu.
^Navigation(Synopsis);
This macro allows you to get the submenu of a page along with the synopsis of each link.
NOTES: The .synopsis_sub, .synopsis_summary, and .synopsis_title style sheet classes are tied to this macro.
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).
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\nIdentifier
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.
\r\nUse 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\nReturn 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
...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).
Show System Pages
Should the menus the macro creates include System pages?
System pages: Trash, clipboard, page not found, etc.
Show Hidden Pages
Should the menus the macro creates include pages which are marked as Hidden?
Show Unpriviliged Pages
Should the menus the macro creates include pages which the currently logged-in user does not have the privilige to view?
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.
Revert 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.
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.
The navigation system consists of two parts:
\r\nThe 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.
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.buttonpage_loop
A loop containing page information.
\r\n\r\npage.menuTitle
\r\n
The menu title of this page.page.title
\r\n
The title of this page.page.urlizedTitle
\r\n
The urlized title of this pagepage.url.page.url
\r\n
The url of this page.page.pageId
\r\n
The pageId of this page.page.parentId
\r\n
The ParentId of this page.page.ownerId
\r\n
The ownerId of this page.page.synopsis
\r\n
The synopsis of this page.page.newWindow
\r\n
A condition indicating whether this page should be opened in a new window.page.absDepth
\r\n
The absolute depth of this page (relative to nameless root).page.relDepth
\r\n
The relative depth of this page (relative to starting point).page.isCurrent
\r\n
A condition indicating whether this page is current page.page.isHidden
\r\n
A condition indicating whether this page is a hidden page.
(Note: This variable is only visible if \"Show hidden pages\" is switched on.)page.isSystem
\r\n
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.)page.isViewable
\r\n
A condition indicating whether the user has permission to view it.
(Note: This variable is only visible if \"Show unprivileged pages\" is switched on.)page.indent
\r\n
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.page.indent_loop
\r\n
A loop that runs page.relDepth times.\r\n\r\nindent
A number representing the loop count.page.isRoot
\r\n
A condition indication whether this page is a root page.page.isTop
\r\n
A condition indication whether this page is a top page (daughter of root).page.hasDaughter
\r\n
A condition indication whether this page has a daughter. In other words: It evaluates to true if this page is a mother.page.isMyDaughter
\r\n
A condition indication whether this page is a daughter of current page.page.isMyMother
\r\n
A condition indication whether this page is the mother of current page.page.mother.title
\r\n
The title of the mother of this page.page.mother.urlizedTitle
\r\n
The urlized title of the mother of this page.page.mother.pageId
\r\n
The pageId of the mother of this page.page.mother.parentId
\r\n
The parentId of the mother of this page.page.depthIs1 , page.depthIs2 , page.depthIs3 , page.depthIs4 , page.depthIsN
\r\n
A condition indicating whether the depth of this page is N. This variable is useful if you want to style a certain level.<tmpl_if page.depthIs1>
\r\n
<img src=\"level1.gif\">
<tmpl_else>
<img src=\"defaultBullet.gif\">
</tmpl_if>page.relativeDepthIs1 , page.relativeDepthIs2 , page.relativeDepthIs3 , page.relativeDepthIsN
A condition indicating whether the relative depth of this page is 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).'