add menuTitle to the Folder templates
This commit is contained in:
parent
0a1974ba4c
commit
a1ea1ec2de
4 changed files with 25 additions and 6 deletions
|
|
@ -172,12 +172,13 @@ sub view {
|
|||
foreach my $child (@{$children}) {
|
||||
if (ref($child) eq "WebGUI::Asset::Wobject::Folder") {
|
||||
push(@{$vars{"subfolder_loop"}}, {
|
||||
id => $child->getId,
|
||||
url => $child->getUrl,
|
||||
title => $child->get("title"),
|
||||
canView => $child->canView(),
|
||||
"icon.small"=>$child->getIcon(1),
|
||||
"icon.big"=>$child->getIcon
|
||||
id => $child->getId,
|
||||
url => $child->getUrl,
|
||||
title => $child->get("title"),
|
||||
menuTitle => $child->get("menuTitle"),
|
||||
canView => $child->canView(),
|
||||
"icon.small" => $child->getIcon(1),
|
||||
"icon.big" => $child->getIcon,
|
||||
});
|
||||
} else {
|
||||
my $isImage = (ref($child) =~ /^WebGUI::Asset::File::Image/);
|
||||
|
|
@ -188,6 +189,7 @@ sub view {
|
|||
id=>$child->getId,
|
||||
canView => $child->canView(),
|
||||
title=>$child->get("title"),
|
||||
title=>$child->get("menuTitle"),
|
||||
synopsis=>$child->get("synopsis") || '',
|
||||
size=>WebGUI::Utility::formatBytes($child->get("assetSize")),
|
||||
"date.epoch"=>$child->get("revisionDate"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue