Hi,
you will probably need to create a hierarchical structure:
date1
---eventOfType1
---eventOfType2
date2
---eventOfType3
You could add this functionality using API to file:
/CMSModules/Content/CMSDesk/Edit/edit.aspx (btnSave_Click method) and create a parent node using
document API.
In this case you could use nested repeaters. The outside one will display dates and the inner one events. Here is an example of nested datalist (it works the same way for repeaters). The bold is inner datalist.
<strong><a href="<%# ResolveUrl(GetUrl( Eval("NodeAliasPath"), null)) %>">
<%# Eval("DocumentName") %></a></strong>
<br />
<cc1:CMSDataList ID="CMSDataList1" runat="server" ClassNames="cms.article" Path='<%# Eval("NodeAliasPath") %>'
TransformationName="cms.article.default" RepeatColumns="2" >
</cc1:CMSDataList>
<script runat="server">
protected void Page_PreRender(object sender, EventArgs e)
{
CMSDataList1.ReloadData(true);
}
</script>
As for displaying fields. You can use standard Eval method in transformation to display the content of fields. But only fields of current document type will be displayed. In other words only field common for all document types will be always resolved. In the version 6.0 - will be released in few days - you can define a different transformation for each document type so you do not need to define complicated "if" conditions inside the transformation.
Best regards,
Ivana Tomanickova