From 5592df930d17bfe0dbded214e10b7886a77c4aa0 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 30 Dec 2004 00:42:39 +0000 Subject: [PATCH] fixed navigation template variables --- lib/WebGUI/i18n/English/Navigation.pm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/WebGUI/i18n/English/Navigation.pm b/lib/WebGUI/i18n/English/Navigation.pm index a23ae3e9e..03784e821 100644 --- a/lib/WebGUI/i18n/English/Navigation.pm +++ b/lib/WebGUI/i18n/English/Navigation.pm @@ -75,9 +75,9 @@ the Navigation Template to determine who can see them in the menu.

message => q|

currentPage.menuTitle
The pageId of the base page.

currentPage.title
The title of the base page.

currentPage.url
The URL of the base page.

-

currentPage.assetId
The pageId of the base page.

-

currentPage.parentId
The parentId of the base page.

-

currentPage.ownerUserId
The ownerId of the base page.

+

currentPage.assetId
The assetId of the base page.

+

currentPage.parentId
The assetId of the parent of the base page.

+

currentPage.ownerUserId
The userId of the owner of the base page.

currentPage.synopsis
The synopsis of the base page.

currentPage.newWindow
A conditional indicating whether the base page should be opened in a new window.

currentPage.hasChild
A conditional indicating whether the base page has daughters.

@@ -117,18 +117,21 @@ loop variables:

page.parent.*
These variables will be undefined if the page is a root.

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

page.parent.url
The urlized title of the mother of this page.

-

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

-

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

+

page.parent.assetId
The assetId of the mother of this page.

+

page.parent.parentId
The assetId of the grandmother of this page.

+

page.parent.ownerUserId
The userId of the owner of the mother of this page.

+

page.parent.synopsis
The synopsis of the mother of this page.

+

page.parent.newWindow
A conditional indicating whether the mother of this page should be opened in a new window.

page.depthIs1 , page.depthIs2 , page.depthIs3 , page.depthIs4 , page.depthIsN
A conditional 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>
   <img src="level1.gif">
<tmpl_else>
   <img src="defaultBullet.gif">
</tmpl_if>

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

page.isRankedFirst
This property is true if this page is the first within this level. Ie. has no left sister.

page.isRankedLast
This property is true if this page is the last within this level. Ie. has no right sister.

-

page.depthDiff
The difference in depth of this page and the page processed before it. This only has a value when you go up in depth. If you go down, this would be always 1 and going down a level can be detected with page.isLeftMost.

+

page.depthDiff
The difference in depth of this page and the page processed before it. This only has a value when you go up in depth. If you go down, this would be always 1 and going down a level can be detected with page.isRankedFirst.

page.depthDiffIs1, page.depthDiffIs2, page.depthDiffIs3, page.depthDiffIsN
True if the page.depthDiff variable is N.

page.depthDiff_loop
A loop that runs page.depthDiff times. This loop contains no loop variables.

 

|, - lastUpdated => 1101774191 + lastUpdated => 1104367754, }, '1094' => {