![]() |
Enterprise Systems »
Content Management Server »
General
Intermediate
Microsoft Content Management Server Create/Delete Channel Web Author Plug-insBy Stephen HuenThis set of plug-ins adds options to Create and Delete Channels in the Content Management Server Web Author. |
VB, Javascript.NET 1.1, .NET 2.0, Win2003, ASP.NET, VS.NET2003, VS2005, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

For use in Microsoft Content Management Server, this set of plug-ins (written in VB) allows Administrators and Channel Managers to create and delete Channels using the Web Author. The Create Channel dialog also provides an option to create a default page for the newly created channel. When a default page template is selected, the user will be directed to the authoring view of the default page within the newly created channel. The user can either fill in content and click Save to create the default page, or click Cancel without creating the default page.
A C# version of this set of plug-ins is available here.
ChannelCreateAction and ChannelDeleteAction to PresentationModeContainer (unpublished), and add FailedChannelDelete to ErrorConsole. The following are the changes required as done in DefaultConsole.ascx: <%@ Register TagPrefix="CustomAction"
Namespace="WebControlLibraryRootNamespace.QuestechSystems.
WebControls.ConsoleControls"
Assembly="WebControl Library Assembly Name" %>
......
<CmsConsole:Console runat="server" id="Console1">
<script language="javascript" type="text/javascript"
src="/<MCMS Site Application Name>/WebAuthor/Client/Console.js"></script>
......
<cms:PresentationModeContainer mode="Unpublished" runat="server"
id="PresentationUnpublishedModeContainer1">
<CustomAction:ChannelCreateAction
id="ChannelCreateAction1" runat="server">
<A id=ChannelCreateAnchor
onclick="<%# Container.ActionJavascript %>;return false"
href="#"
target=_self><%# Container.Text %>
</A>
<BR>
</CustomAction:ChannelCreateAction>
<CustomAction:ChannelDeleteAction
id="ChannelDeleteAction1" runat="server">
<A id=ChannelDeleteAnchor
onclick="<%# Container.ActionJavascript %>;return false"
href="#"
target=_self><%# Container.Text %>
</A>
<BR>
</CustomAction:ChannelDeleteAction>
<CmsConsole:ChannelPropertiesAction
id="ChannelPropertiesAction1" runat="server">
......
</CmsConsole:ChannelPropertiesAction>
......
</cms:PresentationModeContainer>
......
</CmsConsole:Console>
<CmsConsole:ErrorConsole runat="server" id="ErrorConsole1">
......
<cms:ErrorModeContainer id="ErrorModeContainerFailedChannelDelete1"
runat="server" mode="FailedChannelDelete">
<b><font color="red">
<%# Container.Error.Title %>
</font></b>
<hr>
<font color="red">Error Details:<br>
<font size="-2">
<%# Container.Error.Exception.Message %>
</font></font>
</cms:ErrorModeContainer>
......
</CmsConsole:ErrorConsole>
If a channel is empty, MCMS will render the channel using the default cover page. You will, therefore, need a Channel Rendering script to fully utilize this set of plug-ins. Please see the MCMS documentation, "Creating Channel Rendering Scripts", for details.
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 17 May 2006 Editor: Smitha Vijayan |
Copyright 2004 by Stephen Huen Everything else Copyright © CodeProject, 1999-2009 Web20 | Advertise on the Code Project |