Fixed navigation help which was removed for some reason

This commit is contained in:
Len Kranendonk 2004-03-19 07:29:47 +00:00
parent 08dc964a80
commit 6edaa4b432
2 changed files with 17 additions and 3 deletions

View file

@ -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&nbsp;WebGUI Authentication Display Account&nbsp;templates. \r\n<P><STRONG>account.form.header</STRONG><BR>The required form elements that go at the top of the&nbsp;display account page.<BR><BR><STRONG>account.form.footer</STRONG><BR>The required form elements that go after the display account page form. </P>\r\n<P><STRONG>account.form.karma</STRONG><BR>A read only form property displaying the amount of karma a user has.&nbsp; Karma&nbsp;is a&nbsp;configurable user setting that is turned off by default&nbsp; \r\n<P><STRONG>account.form.karma.label</STRONG><BR>Internationalized text label for&nbsp;the karma form value&nbsp; \r\n<P><STRONG>account.form.submit<BR></STRONG>The default submit button for the&nbsp;display account form. <BR><BR><STRONG>account.options</STRONG><BR>Links list of options&nbsp;which&nbsp;allow users to&nbsp;turn on Admin, view and edit profile, view the messageLog, etc.&nbsp; <BR><BR><STRONG>displayTitle<BR></STRONG>Page title\r\n<P><STRONG>account.message</STRONG><BR>Any message returned by the system.&nbsp; Usually displays after the form is submitted.<BR><BR><STRONG>account.form.username</STRONG><BR>Default username form field<BR><BR><STRONG>account.form.username.label</STRONG><BR>Default text for username form field<BR><BR><STRONG>account.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>account.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>account.form.passwordConfirm</STRONG><BR>Default password confirm form field<BR><BR><STRONG>account.form.passwordConfirm.label<BR></STRONG>Default text for password confirm form field<BR><BR><STRONG>account.noform</STRONG><BR>Indicates whether or not the display account form has any visible fields<BR><BR><STRONG>account.nofields<BR></STRONG>Default display in the case that there are no form elements to display</P>', 1078852836,NULL);
insert into international (internationalId,languageId,namespace,message,lastUpdated,context) values (2,1,'Auth/WebGUI/Account','The following template variables are available for&nbsp;WebGUI Authentication Display Account&nbsp;templates. \r\n<P><STRONG>account.form.header</STRONG><BR>The required form elements that go at the top of the&nbsp;display account page.<BR><BR><STRONG>account.form.footer</STRONG><BR>The required form elements that go after the display account page form. </P>\r\n<P><STRONG>account.form.karma</STRONG><BR>A read only form property displaying the amount of karma a user has.&nbsp; Karma&nbsp;is a&nbsp;configurable user setting that is turned off by default&nbsp; \r\n<P><STRONG>account.form.karma.label</STRONG><BR>Internationalized text label for&nbsp;the karma form value&nbsp; \r\n<P><STRONG>account.form.submit<BR></STRONG>The default submit button for the&nbsp;display account form. <BR><BR><STRONG>account.options</STRONG><BR>Links list of options&nbsp;which&nbsp;allow users to&nbsp;turn on Admin, view and edit profile, view the messageLog, etc.&nbsp; <BR><BR><STRONG>displayTitle<BR></STRONG>Page title\r\n<P><STRONG>account.message</STRONG><BR>Any message returned by the system.&nbsp; Usually displays after the form is submitted.<BR><BR><STRONG>account.form.username</STRONG><BR>Default username form field<BR><BR><STRONG>account.form.username.label</STRONG><BR>Default text for username form field<BR><BR><STRONG>account.form.password<BR></STRONG>Default password form field<BR><BR><STRONG>account.form.password.label<BR></STRONG>Default text for password form field<BR><BR><STRONG>account.form.passwordConfirm</STRONG><BR>Default password confirm form field<BR><BR><STRONG>account.form.passwordConfirm.label<BR></STRONG>Default text for password confirm form field<BR><BR><STRONG>account.noform</STRONG><BR>Indicates whether or not the display account form has any visible fields<BR><BR><STRONG>account.nofields<BR></STRONG>Default display in the case that there are no form elements to display</P>', 1078852836,NULL);
DELETE FROM international WHERE internationalId=842 and namespace='WebGUI' and languageId=1;
INSERT INTO international VALUES (842,'WebGUI',1,'<P>These macros are used to create navigation on the site. </P>\r\n<P><B>^H; or ^H(); - Home Link</B><BR>A link to the home page of this site. In addition you can change the link text by creating a macro like this <B>^H(\"Go Home\");</B>. \r\n<P><B>NOTES:</B> 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. </P>\r\n<P><B>^/; - System URL</B><BR>The URL to the gateway script (example: <I>/index.pl/</I>). \r\n<P><B>^\\; - Page URL</B><BR>The URL to the current page (example: <I>/index.pl/pagename</I>). \r\n<P><STRONG>^Navigation(crumbTrail);<BR></STRONG>A dynamically generated crumb trail to the current page.\r\n<P><B>NOTE:</B> The .crumbTrail style sheet class is tied to this macro. </P>\r\n<P><STRONG>^Navigation(FlexMenu);<BR></STRONG>This menu macro creates a top-level menu that expands as the user selects each menu item. </P>\r\n<P><STRONG>^Navigation(currentMenuVertical);<BR></STRONG>A vertical menu containing the sub-pages at the current level. By default it tracks 1 level deep. </P>\r\n<P><STRONG>^Navigation(currentMenuHorizontal);<BR></STRONG>A horizontal menu containing the sub-pages at the current level.</P>\r\n<P><STRONG>^Navigation(PreviousDropMenu);<BR></STRONG>Create a drop down menu containing the sub-pages at the previous level in the page tree. </P>\r\n<P><STRONG>^Navigation(previousMenuVertical);<BR></STRONG>A vertical menu containing the sub-pages at the previous level. By default it will show only the first level. </P>\r\n<P><STRONG>^Navigation(previousMenuHorizontal);<BR></STRONG>A horizontal menu containing the sub-pages at the previous level. </P>\r\n<P><STRONG>^Navigation(rootmenu);<BR></STRONG>Creates a horizontal menu of the various roots on your system (except for the WebGUI system roots).</P>\r\n<P><STRONG>^Navigation(SpecificDropMenu);<BR></STRONG>Create a drop down menu starting at a specific point in your navigation tree. The default start page is \"home\". </P>\r\n<P><STRONG>^Navigation(SpecificSubMenuVertical);<BR></STRONG>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. </P>\r\n<P><STRONG>^Navigation(SpecificSubMenuHorizontal);<BR></STRONG>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. </P>\r\n<P><STRONG>^Navigation(TopLevelMenuVertical);<BR></STRONG>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. </P>\r\n<P><STRONG>^Navigation(TopLevelMenuHorizontal);<BR></STRONG>A vertical menu containing the main pages of the site (aka the sub-pages from the home page).</P>\r\n<P><STRONG>^Navigation(RootTab);<BR></STRONG>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). </P>\r\n<P><STRONG>NOTE:</STRONG> Has two special style sheet classes: .RootTabOn{} and .RootTabOff{}. \r\n<P><I>Example:</I><BR>&lt;style&gt; .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; } &lt;/style&gt; ^RootTab; </P>\r\n<P><STRONG>^Navigation(TopDropMenu);<BR></STRONG>Create a drop down menu of your top level navigation. </P>\r\n<P><STRONG>^Navigation(dtree);<BR></STRONG>Create a dynamic tree menu.</P>\r\n<P><STRONG>^Navigation(coolmenu);<BR></STRONG>Create a DHTML driven menu. </P>\r\n<P><STRONG>^Navigation(Synopsis);<BR></STRONG>This macro allows you to get the submenu of a page along with the synopsis of each link. </P>\r\n<P><STRONG>NOTES:</STRONG> The .synopsis_sub, .synopsis_summary, and .synopsis_title style sheet classes are tied to this macro. <BR></P>\r\n<P>It should be noted that many of these macros can also make use of these style sheet classes: </P>\r\n<P><B>.selectedMenuItem</B><BR>Use this class to highlight the current page in any of the menu macros. \r\n<P><B>.verticalMenu </B><BR>The vertical menu (if you use a vertical menu macro). \r\n<P><B>.horizontalMenu </B><BR>The horizontal menu (if you use a horizontal menu macro). </P>',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,'<P>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. </P>\r\n<P><B>Identifier</B><BR>This is the (unique) label you will later use to specify this Navigation definition in a ^Navigation(); macro.</P>\r\n<P><B>Base Page<BR></B>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. </P>\r\n<P></P>\r\n<P>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.</P>\r\n<P>Use the&nbsp;\'Add new value\' option if you want to specify a custom starting page. You can refer&nbsp;to a&nbsp;starting page by its urlized title or its pageId.</P>\r\n<P><B>Return a Loop With</B><BR>This determines which pages relative to the base page will be included in the menu which the macro creates.</P>\r\n<UL>\r\n<LI>daughters - pages below the&nbsp;base&nbsp;page \r\n<LI>sisters - pages at the same level as the&nbsp;base page, excluding the base page itself. \r\n<LI>self and sisters - all pages at the same level as the base page. \r\n<LI>descendants - all the descendants of base page (daughters, granddaughters, grand-granddaughters, etc) \r\n<LI>self and descendants - base page and all of it\'s descendants. \r\n<LI>childless descendants - The \"leaf nodes\" under base page. Also called \"terminal nodes\" -- i.e. pages that have no daughters. \r\n<LI>generation - base page, it\'s sisters, it\'s cousins, grand cousins, grand-grand cousins, etc. Technically spoken: Pages that share the same depth as \"base page\". \r\n<LI>ancestors - all base page ancestors, starting with it\'s mother, then grandmother, etc, up to the root page. \r\n<LI>self and ancestors - same as ancestors but starting at base page. \r\n<LI>pedigree - This is what we know as the \"FlexMenu\". Starting at base page, it returns its daughters, self and sisters, ancestors and the sisters of each ancestor.<BR></LI></UL>\r\n<P><B>Stop traversing when reaching level</B><BR>This allows you to prune a menu -- in either direction -- when it reaches a <I>specific</I> level in the page tree. It\'s slightly different in effect than... </P>\r\n<P><B>Max Depth</B><BR>...which allows you to prune a menu -- in either direction -- when it reaches a <I>number of levels</I> in the page tree. \'Stop Traversing\' is absolute; \'Max Depth\' is relative. Presumably, if you set both, whichever one takes effect <I>first</I> will be the active limit (that is, they\'re OR\'d together). </P>\r\n<P><B>Show System Pages</B><BR>Should the menus the macro creates include System pages? <BR>System pages: Trash, clipboard, page not found, etc.</P>\r\n<P><B>Show Hidden Pages</B><BR>Should the menus the macro creates include pages which are marked as Hidden? </P>\r\n<P><B>Show Unpriviliged Pages</B><BR>Should the menus the macro creates include pages which the currently logged-in user does not have the privilige to view? </P>\r\n<P><B>Template</B><BR>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.</P>\r\n<P><B>Revert Output<BR></B>When this option is switched on, the menu will be in reverse order.</P>\r\n<P><STRONG>Preview<BR></STRONG>The Preview button allows you to view a navigation setup without actually saving it.<STRONG><FONT color=#ff0000></P></FONT></STRONG>',1078461049,NULL);
INSERT INTO international VALUES (1094,'WebGUI',1,'Navigation, Manage',1078208044,NULL);
INSERT INTO international VALUES (1095,'WebGUI',1,'<P>The general idea behind the&nbsp;navigation system is that instead of<BR>hardwiring all the various choices you might make into the code, the<BR>system manages a \'library\' of these styles, just the way it does with<BR>Snippets, Images, Templates, Page Styles, and other types of reusable<BR>information.&nbsp; You can create a new \'nav menu style\', give it a name,<BR>and then use it anywhere on your site that you like.</P>\r\n<P>The navigation system consists of two parts:</P>\r\n<OL>\r\n<LI>The navigation editor</LI>\r\n<LI>The <STRONG>^Navigation();</STRONG> macro</LI></OL>\r\n<P>The easiest way to add a completely new menu to your site is to put a <STRONG>^Navigation(myMenu);</STRONG> macro into your style. <BR>A \"edit myMenu\" link will be displayed if \"myMenu\" is not defined. </P>\r\n<P>Note: In this example \"myMenu\" is used, but you can pick any name, as long as it is unique.</P>',1078462928,NULL);
INSERT INTO international VALUES (1096,'WebGUI',1,'Navigation Template',1078207966,NULL);
INSERT INTO international VALUES (1097,'WebGUI',1,'<STRONG>config.button</STRONG>&nbsp;<BR>A \"Edit / Manage\" button for this navigation item.<BR>\r\n<P><STRONG>page_loop</STRONG><BR>A loop containing page information.</P>\r\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\">\r\n<P dir=ltr><STRONG>page.menuTitle<BR></STRONG>The menu title of this page.</P>\r\n<P dir=ltr><STRONG>page.title<BR></STRONG>The title of this page.</P>\r\n<P><STRONG>page.urlizedTitle<BR></STRONG>The urlized title of this pagepage.url.</P>\r\n<P><STRONG>page.url<BR></STRONG>The url of this page.</P>\r\n<P dir=ltr><STRONG>page.pageId</STRONG><BR>The pageId of this page.</P>\r\n<P dir=ltr><STRONG>page.parentId</STRONG><BR>The ParentId&nbsp;of this page.</P>\r\n<P dir=ltr><STRONG>page.ownerId<BR></STRONG>The ownerId of this page.</P>\r\n<P dir=ltr><STRONG>page.synopsis<BR></STRONG>The synopsis of this page.</P>\r\n<P dir=ltr><STRONG>page.newWindow</STRONG><BR>A condition indicating whether this page should be opened in a new window.</P>\r\n<P dir=ltr><STRONG>page.absDepth</STRONG><BR>The absolute depth of this page&nbsp;(relative to nameless root).</P>\r\n<P><STRONG>page.relDepth</STRONG><BR>The relative depth of this page (relative to starting point).</P>\r\n<P><STRONG>page.isCurrent</STRONG><BR>A condition indicating whether this page is current page.</P>\r\n<P><STRONG>page.isHidden</STRONG><BR>A condition indicating whether this page is a hidden page.<BR><EM>(Note: This variable is only visible if \"Show hidden pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.isSystem</STRONG><BR>A condition indicating whether this page is a system page (Trash, Clipboard, etc).<BR><EM>(Note: This variable is only visible if \"Show system pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.isViewable<BR></STRONG>A condition indicating whether the user has permission to view it.<BR><EM>(Note: This variable is only visible if \"Show unprivileged pages\" is switched on.)</EM></P>\r\n<P><STRONG>page.indent<BR></STRONG>A variable containing the indent for current page. The default indent is three spaces. Use the <STRONG>page.indent_loop </STRONG>if you need a more flexible indent.</P>\r\n<P><STRONG>page.indent_loop<BR></STRONG>A loop that runs <STRONG>page.relDepth </STRONG>times.</P>\r\n<BLOCKQUOTE dir=ltr style=\"MARGIN-RIGHT: 0px\">\r\n<P><STRONG>indent</STRONG><BR>A number representing the loop count. </P></BLOCKQUOTE>\r\n<P dir=ltr><STRONG>page.isRoot</STRONG><BR>A condition indication whether this page is a root page.</P>\r\n<P dir=ltr><STRONG>page.isTop</STRONG><BR>A condition indication whether this page is a top page (daughter of root).</P>\r\n<P dir=ltr><STRONG>page.hasDaughter</STRONG><BR>A condition indication whether this page has a daughter. In other words: It evaluates to true if this page is a mother.</P>\r\n<P dir=ltr><STRONG>page.isMyDaughter</STRONG><BR>A condition indication whether this page is a daughter of current page.</P>\r\n<P dir=ltr><STRONG>page.isMyMother<BR></STRONG>A condition indication whether this page is the mother of current page.</P>\r\n<P dir=ltr><STRONG>page.mother.title<BR></STRONG>The title of the mother of this&nbsp;page.</P>\r\n<P dir=ltr><STRONG>page.mother.urlizedTitle<BR></STRONG>The urlized title of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.mother.pageId</STRONG><BR>The pageId of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.mother.parentId</STRONG><BR>The parentId of the mother of this page.</P>\r\n<P dir=ltr><STRONG>page.depthIs1 , page.depthIs2 , page.depthIs3 , page.depthIs4 , page.depthIsN<BR></STRONG>A condition indicating whether the depth of this page is N. This variable is useful if you want to style a certain level.</P>\r\n<P dir=ltr>&lt;tmpl_if page.depthIs1&gt;<BR>&nbsp;&nbsp; &lt;img src=\"level1.gif\"&gt;<BR>&lt;tmpl_else&gt;<BR>&nbsp;&nbsp; &lt;img src=\"defaultBullet.gif\"&gt;<BR>&lt;/tmpl_if&gt;</P>\r\n<P dir=ltr><STRONG>page.relativeDepthIs1 , page.relativeDepthIs2 , page.relativeDepthIs3 , page.relativeDepthIsN</STRONG><BR>A condition indicating whether the relative depth of this page is N.</P></BLOCKQUOTE>\r\n<P dir=ltr>&nbsp;</P>',1078207966,NULL);

View file

@ -115,7 +115,7 @@ sub www_editNavigation {
$config->{showUnprivilegedPages} = 0;
$config->{'reverse'} = 0;
}
my $output = helpIcon(79).'<h1>'.WebGUI::International::get(22, 'Navigation').'</h1>';
my $output = helpIcon(83).'<h1>'.WebGUI::International::get(22, 'Navigation').'</h1>';
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).'<h1>'.WebGUI::International::get(34,'Navigation').'</h1>';
my $output .= helpIcon(84).'<h1>'.WebGUI::International::get(34,'Navigation').'</h1>';
my $sth = WebGUI::SQL->read("select navigationId, identifier from Navigation order by identifier");
my $i = 0;
my @row = ();