diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ccefcb4e2..9e6845276 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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.) diff --git a/lib/WebGUI/Asset/Wobject/Folder.pm b/lib/WebGUI/Asset/Wobject/Folder.pm index a3ef5688e..77ab5dd0b 100644 --- a/lib/WebGUI/Asset/Wobject/Folder.pm +++ b/lib/WebGUI/Asset/Wobject/Folder.pm @@ -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"), diff --git a/lib/WebGUI/Help/Asset_Folder.pm b/lib/WebGUI/Help/Asset_Folder.pm index 0914c8f0e..429a8146d 100644 --- a/lib/WebGUI/Help/Asset_Folder.pm +++ b/lib/WebGUI/Help/Asset_Folder.pm @@ -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", }, diff --git a/lib/WebGUI/i18n/English/Asset_Folder.pm b/lib/WebGUI/i18n/English/Asset_Folder.pm index 83764a70e..4b3e9fff0 100644 --- a/lib/WebGUI/i18n/English/Asset_Folder.pm +++ b/lib/WebGUI/i18n/English/Asset_Folder.pm @@ -89,6 +89,12 @@ to do you want to go to the new Folder?

|, 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?

|, 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,