Building the Data Layer
The Web Part will generate XML that lists all the ChannelItems
in the configured StartChannel
using the configured SortOrder
. The use of XML facilitates the separation of the presentation layer from the data layer. Our data layer will be another class in the Web Part project but it could have been placed in an entirely different assembly for further abstraction.
1. In Visual Studio .NET, right-click on the
ExtensibleMCMSPageListingWebPart
project and choose Add New Item.2. Under the Add sub-menu, choose Add New Class.
3. Enter
NavigationWebPartMCMSIntegration
as the name and click OK.4. Add a reference to
Microsoft.ContentManagement.Publishing.dll
. As with other library files from...