diff --git a/docs/create.sql b/docs/create.sql index 6dc488881..24df7b655 100644 --- a/docs/create.sql +++ b/docs/create.sql @@ -377,14 +377,14 @@ INSERT INTO Navigation VALUES (8,'rootmenu',1,'daughters','root',-1,3,0,0,0,0); INSERT INTO Navigation VALUES (9,'SpecificDropMenu',3,'descendants','home',-1,4,0,0,0,0); INSERT INTO Navigation VALUES (10,'SpecificSubMenuVertical',3,'descendants','home',-1,1,0,0,0,0); INSERT INTO Navigation VALUES (11,'SpecificSubMenuHorizontal',1,'descendants','home',-1,3,0,0,0,0); -INSERT INTO Navigation VALUES (12,'TopLevelMenuVertical',99,'descendants','WebGUIroot',-1,1,0,0,0,0); -INSERT INTO Navigation VALUES (13,'TopLevelMenuHorizontal',99,'descendants','WebGUIroot',-1,3,0,0,0,0); +INSERT INTO Navigation VALUES (12,'TopLevelMenuVertical',1,'descendants','WebGUIroot',-1,1,0,0,0,0); +INSERT INTO Navigation VALUES (13,'TopLevelMenuHorizontal',1,'descendants','WebGUIroot',-1,3,0,0,0,0); INSERT INTO Navigation VALUES (14,'RootTab',99,'daughters','root',-1,5,0,0,0,0); -INSERT INTO Navigation VALUES (15,'TopDropMenu',99,'decendants','WebGUIroot',-1,4,0,0,0,0); +INSERT INTO Navigation VALUES (15,'TopDropMenu',1,'decendants','WebGUIroot',-1,4,0,0,0,0); INSERT INTO Navigation VALUES (16,'dtree',99,'self_and_descendants','WebGUIroot',-1,6,0,0,0,0); INSERT INTO Navigation VALUES (17,'coolmenu',99,'descendants','WebGUIroot',-1,7,0,0,0,0); INSERT INTO Navigation VALUES (18,'Synopsis',99,'self_and_descendants','current',-1,8,0,0,0,0); -INSERT INTO Navigation VALUES (1000,'TopLevelMenuHorizontal_1000',99,'WebGUIroot','WebGUIroot',-1,1000,0,0,0,0); +INSERT INTO Navigation VALUES (1000,'TopLevelMenuHorizontal_1000',1,'WebGUIroot','WebGUIroot',-1,1000,0,0,0,0); INSERT INTO Navigation VALUES (1001,'currentMenuHorizontal_1001',1,'descendants','current',-1,1001,0,0,0,0); INSERT INTO Navigation VALUES (1002,'FlexMenu_1002',99,'pedigree','current',2,1,0,0,0,0); 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 ea4ee45c8..9a61c409e 100644 --- a/docs/upgrades/upgrade_6.0.0-6.0.1.sql +++ b/docs/upgrades/upgrade_6.0.0-6.0.1.sql @@ -79,7 +79,7 @@ INSERT INTO international VALUES (1094,'WebGUI',1,'Navigation, Manage',107820804 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); -update Navigation set depth=99 where depth=0; +update Navigation set depth=1 where depth=0; delete from international where internationalId=981 and namespace='WebGUI'; delete from template where namespace='Macro/L_loginBox' and templateId=2; INSERT INTO template VALUES (2,'Horizontal Login Box','
\n\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \">\n \n\n \n \">.\n
\n \n \n
\n
\n
\n','Macro/L_loginBox',1,1);