adding last bits of functionality for dashboard. Help and i18n are left.

This commit is contained in:
Matthew Wilson 2005-12-03 04:53:48 +00:00
parent f2c8d4eed5
commit 6d5710db27
6 changed files with 31 additions and 22 deletions

View file

@ -401,6 +401,7 @@ sub definition {
},
collaborationTemplateId =>{
fieldType=>"template",
namespace=>'Collaboration',
defaultValue=>'PBtmpl0000000000000026'
},
karmaPerPost =>{

View file

@ -157,6 +157,13 @@ sub view {
my @hidden = split("\n",$self->get("assetsToHide"));
foreach my $child (@{$children}) {
push(@hidden,$child->get('shortcutToAssetId')) if ref $child eq 'WebGUI::Asset::Shortcut';
#the following loop will initially place just-shortcutted assets.
for (my $i = 0; $i < scalar(@positions); $i++) {
next unless isIn($child->get('shortcutToAssetId'),@hidden);
my $newChildId = $child->getId;
my $oldChildId = $child->get('shortcutToAssetId');
$positions[$i] =~ s/${oldChildId}/${newChildId}/g;
}
}
my $i = 1;
my $templateAsset = WebGUI::Asset->newByDynamicClass($templateId) || WebGUI::Asset->getImportNode;