Skip to content

Commit 37aac1b

Browse files
author
Shaun McCormick
committed
[#40] Add wf.level placeholder to items for showing current depth
1 parent 532a4c7 commit 37aac1b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/components/wayfinder/docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Changelog for Wayfinder (for Revolution).
22

33
Wayfinder 2.3.3
44
====================================
5+
- [#40] Add wf.level placeholder to items for showing current depth
56
- [#42] Allow authenticated mgr users with view_unpublished to use new previewUnpublished property to preview unpublished Resources in menus
67
- [#41] Fix issue with Wayfinder and truncated result sets due to getIterator call
78

core/components/wayfinder/wayfinder.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ public function renderRow(&$resource,$numChildren) {
329329
$placeholders['wf.classNames'] = $classNames;
330330
$placeholders['wf.classnames'] = $classNames;
331331
$placeholders['wf.id'] = $useId;
332+
$placeholders['wf.level'] = $resource['level'];
332333
$placeholders['wf.docid'] = $resource['id'];
333334
$placeholders['wf.subitemcount'] = $numChildren;
334335
$placeholders['wf.attributes'] = $resource['link_attributes'];

0 commit comments

Comments
 (0)