users may now customize the post received page for the CS

This commit is contained in:
Chris Nehren 2008-09-29 18:21:29 +00:00
parent 74d9e95d75
commit c25101654f
5 changed files with 32 additions and 1 deletions

View file

@ -1454,7 +1454,20 @@ sub www_showConfirmation {
} else {
$url = $self->getThread->getParent->getUrl;
}
return $self->getThread->getParent->processStyle('<p>'.$i18n->get("post received").'</p><p><a href="'.$url.'">'.$i18n->get("493","WebGUI").'</a></p>');
my $parent = $self->getThread;
my ($collabSystem, $templateId);
if($parent->isa('WebGUI::Asset::Wobject::Collaboration')) {
$collabSystem = $parent;
}
else {
$collabSystem = $parent->getParent;
}
my $templateId = $collabSystem->get('postReceivedTemplateId');
my $template = WebGUI::Asset->new($self->session, $templateId);
my %var = (
url => $url,
);
return $self->getThread->getParent->processStyle($template->process(\%var));
}

View file

@ -781,6 +781,14 @@ sub definition {
filter=>'fixId',
defaultValue=>$groupIdEdit, # groupToEditPost should default to groupIdEdit
},
postReceivedTemplateId =>{
fieldType=>'template',
namespace=>'Collaboration',
tab=>'display',
label=>$i18n->get('post received template'),
hoverHelp=>$i18n->get('post received template hoverHelp'),
defaultValue=>'default_post_received',
},
);
push(@{$definition}, {

View file

@ -1661,6 +1661,15 @@ the Collaboration Asset, the user will be notified.|,
lastUpdated => 1166848379,
},
'post received template' => {
message => q|Post received template|,
lastUpdated => 1221247761,
},
'post received template hoverHelp' => {
message => q|The template for the message received when a user makes a post.|,
lastUpdated => 1221247761,
},
};
1;