users may now customize the post received page for the CS
This commit is contained in:
parent
74d9e95d75
commit
c25101654f
5 changed files with 32 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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}, {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue