8

I need a Calendar view, that shows two calendar entries per list entry (one for the begin date and one for the end date).

Is it possible to do this by creating a custom View Type (and maybe deriving from the calendar view type), or is there some alternative method?

1

Here is some info on creating custom list definitions that may help you.

http://www.andrewconnell.com/blog/archive/2009/02/08/A-Quicker-Way-to-Create-Custom-SharePoint-List-Templates.aspx

http://www.wictorwilen.se/Post/How-to-reuse-your-list-definition-in-a-SharePoint-feature.aspx

http://mo.notono.us/2009/02/moss-dreaded-schemaxml.html

And some on calendar controls.

http://weblogs.asp.net/gunnarpeipman/archive/2009/01/24/creating-sharepoint-global-calendar.aspx

1

You could probably build the view you want with a Data View Web Part (DVWP). DVWPs are XSL-driven and really the only contraints on what you can show on the page is your imagination and what data you have available.

  • Thanks for your answer, but this is not what I'm searching for: I wanted to create a View for the List ... – Hinek Jun 24 '11 at 16:59
  • You can link a DVWP to the list datasource, making it a "view" of your data. This has the advantage that you do not have to deploy a solution. – Jesus Shelby Jun 24 '11 at 18:27
  • Exactly. Views are simply pages with a List View Web Part (LVWP) on them. You can replace that with a DVWP and format away... – Marc D Anderson Jun 24 '11 at 22:14
  • Yes, I know but a) to my knowledge Microsoft discourages using the view pages for other webparts and b) I would have to create the xsd from scratch, while SharePoint already has this kind of view build in... – Hinek Jul 5 '11 at 10:36
  • You don't need an XSD. DVWPs are "list aware" and allow you to format the list items however you want. As for Microsoft discouraging this, I've never hear that, and people do this all the time. – Marc D Anderson Jul 5 '11 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.