add menuTitle to the Folder templates

This commit is contained in:
Colin Kuskie 2007-11-28 05:00:11 +00:00
parent 0a1974ba4c
commit a1ea1ec2de
4 changed files with 25 additions and 6 deletions

View file

@ -7,6 +7,7 @@
- add: Friends Network
- rfe: Added message to user search operation when user count exceeds 250.
(Diona Kidd, Knowmad Technologies)
- rfe: Add menuTitle to folder template (perlDreamer Consulting, LLC)
7.4.16
- fix: Event End Time Missing (perlDreamer Consulting, LLC.)

View file

@ -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"),

View file

@ -25,6 +25,9 @@ our $HELP = {
{ name => "title",
description => "folder title"
},
{ name => "menuTitle",
description => "folder menuTitle"
},
{ name => "icon.small",
description => "folder icon.small"
},
@ -38,6 +41,7 @@ our $HELP = {
{ name => "id", },
{ name => "canView", },
{ name => "title", },
{ name => "menuTitle", },
{ name => "synopsis", },
{ name => "size", },
{ name => "date.epoch", },

View file

@ -89,6 +89,12 @@ to do you want to go to the new Folder?</p>|,
context => q|Template variable description.|
},
'folder title' => {
message => q|The menu title of the Folder.|,
lastupdated => 0,
context => q|Template variable description.|
},
'folder icon.small' => {
message => q|The URL to a small icon of the appropriate type for this Asset.|,
lastupdated => 0,
@ -125,6 +131,12 @@ to do you want to go to the new Folder?</p>|,
context => q|Template variable description.|
},
'menuTitle' => {
message => q|The menu title of the Asset.|,
lastupdated => 0,
context => q|Template variable description.|
},
'synopsis' => {
message => q|The synopsis of the Asset.|,
lastupdated => 0,