![]() |
Enterprise Systems »
Content Management Server »
General
Intermediate
License: The Code Project Open License (CPOL)
MCMS SharePoint List Items PlaceholderBy Stephen HuenLists items in a Windows SharePoint Services (WSS) list. |
C#, SQL.NET 1.1, Win2K, Win2003, ASP.NET, SQL 2000, IIS 5.1, IIS 6, VS.NET2003, IE 6.0, DBA, Dev
|
|
Advanced Search |
|
|
|
||||||||||||||||

For use in Microsoft Content Management Server (MCMS), this custom placeholder control (WssListItemsPlaceholder) lists items in a Windows SharePoint Services (WSS) list. The list can almost be any WSS list, like Document library, Image library, Announcement, Events, Contacts etc.
You need to do this in your development environment only. The URL property of the web references will be dynamically set at run time. Therefore you can just follow your regular deployment method to production.
ProjectName to your project name.
<link rel="stylesheet" href="/<MCMS Site Application Name>/
WssIntegration/Styles/WssListItems.css">
appSettings key: <add key="QuestechSystems.WssListsToExclude" value="108,300" />
Please also refer section "Custom Placeholder Controls", in MCMS documentation. It is located in Site Development: Developing Your MCMS Site: Extending the Functionality of MCMS: Creating Custom Placeholders: Custom Placeholder Controls.
In authoring mode, the placeholder control displays the name and location of the selected SharePoint/WSS list. To select a SharePoint list, click Select to launch the Select SharePoint List dialog.

First enter the Site URL. This is the top level WSS Site Collection URL and can be located at a remote server. For SharePoint Portal Server, you may need to enter the full top level Site Collection URL like http://<sps-server>/sites/sitename. Click Get Child Sites to display the child sites under this Site Collection. Select a Child Site and then a List. A preview of items will then be shown. Click OK to close the dialog.

There are two properties in the placeholder control: SiteCollectionUrl and SiteUrl. They correspond to the (form) values of Site URL and Child Site in the List Selector dialog. Both are optional and if specified restrict what the author can select in the dialog.
You can further restrict the type of list available for selection by entering the type code in the web.config appSettings key QuestechSystems.WssListsToExclude. The full list of type codes is defined in ServerTemplateType in WssUtilities.cs. By default, list types of Discussion and PortalSitesList are not supported. Since I have not tested with every type of WSS list, I am pretty sure there are some more that are not supported.
Lastly, layout of list items in presentation mode can be customized in WssListItems.css or using your own stylesheet.
To author this placeholder, the IIS impersonation account or Application Pool "domain" user for the MCMS site needs to be at least a Reader in the SPS/WSS site.
| You must Sign In to use this message board. | ||||||||
|
||||||||
|
||||||||
|
||||||||
|
||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 22 Sep 2005 Editor: Smitha Vijayan |
Copyright 2005 by Stephen Huen Everything else Copyright © CodeProject, 1999-2009 Web17 | Advertise on the Code Project |