tree: crumbtrail and back/forward work
This commit is contained in:
parent
e9e4b1a73b
commit
4cf3c9878f
2 changed files with 38 additions and 3 deletions
|
|
@ -226,7 +226,13 @@ sub www_getTreeData {
|
|||
$assetInfo->{ totalAssets } = $p->getRowCount;
|
||||
$assetInfo->{ sort } = $session->form->get( 'orderByColumn' );
|
||||
$assetInfo->{ dir } = lc $session->form->get( 'orderByDirection' );
|
||||
$assetInfo->{ currentAsset } = { title => $asset->getTitle, helpers => $asset->getHelpers };
|
||||
$assetInfo->{ currentAsset } = {
|
||||
assetId => $asset->getId,
|
||||
url => $asset->getUrl,
|
||||
title => $asset->getTitle,
|
||||
icon => $asset->getIcon("small"),
|
||||
helpers => $asset->getHelpers,
|
||||
};
|
||||
|
||||
$assetInfo->{ crumbtrail } = [];
|
||||
for my $asset ( @{ $asset->getLineage( ['ancestors'], { returnObjects => 1 } ) } ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue