Hi,
you can get more info on how to extend existing MonoX module
here . When you create new control which extends the existing Monox control, you need to add some code to your extended control similar to this code snippet:
protected
override
Hashtable ParseTemplateTags(SnDiscussionTopicEntity discussionTopic, NVelocity.VelocityContext velocityContext)
{
Hashtable tags =
base
.ParseTemplateTags(discussionTopic, velocityContext);
Label labDate =
new
Label();
labDate.ID =
"labDate"
;
labDate.ToolTip = discussionTopic.DateCreated.ToLocalTime().ToString();
labDate.Text = String.Format(
"{0}"
, GetDateDisplayText(discussionTopic.DateCreated));
if
(tags[
"<# Date #>"
] ==
null
)
{
tags.Add(
"<# Date #>"
, labDate);
}
else
{
tags[
"<# Date #>"
] = labDate ;
}
}
Regards.