5,317,180 members and growing! (21,373 online)
Email Password   helpLost your password?
Enterprise Systems » Content Management Server » General     Intermediate License: The Code Project Open License (CPOL)

Microsoft Content Management Server Create/Delete Channel Web Author Plug-ins (C#)

By Stephen Huen

This set of plug-ins add options to Create and Delete Channels in the Content Management Server Web Author.
C#, Javascript.NET 1.1, .NET 2.0, Win2K, Win2003, Windows, .NET, ASP.NET, Visual Studio, VS.NET2003, VS2005, Dev

Posted: 9 Apr 2004
Updated: 17 May 2006
Views: 69,271
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
7 votes for this Article.
Popularity: 3.66 Rating: 4.33 out of 5
1 vote, 14.3%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
2 votes, 28.6%
4
4 votes, 57.1%
5

Sample Image - sample.gif

Description

For use in the Microsoft Content Management Server, this set of plug-ins (written in C#) 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 VB.NET version of this set of plug-ins is available here.

Installation Procedures

  1. Copy all files in the directory WebControlLibray to the web control library project of your MCMS solution.
  2. Copy the directory WebAuthor to the root of your MCMS site.
  3. In your console control, register CustomAction, include Console.js, add 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="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>
  4. Rebuild your site solution in Visual Studio, and you are all set.

History

  • V1.0 - 2004.04.10 - Base.
  • V1.1 - 2004.07.08
    • Fixed the missing buttons in the dialog.
    • Split CustomAction.cs into ChannelCreateAction.cs and ChannelDeleteAction.cs.
  • V1.2 - 2004.10.09 - Added an option to create a default page.
  • V1.21 - 2005.07.08 - Renamed the namespaces and updated the installation instructions.
  • V1.3 - 2006.05.14 - Added an ASP.NET 2.0 version.

Notes

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Stephen Huen



Occupation: Web Developer
Company: Questech Systems
Location: Canada Canada

Other popular Content Management Server articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 21 of 21 (Total in Forum: 21) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralASP 2.0memberanichin7:46 13 Mar '06  
GeneralRe: ASP 2.0memberStephen Huen19:43 13 Mar '06  
GeneralRe: ASP 2.0memberanichin5:59 14 Mar '06  
GeneralC# Create ChannelmemberAlan Hendry4:50 7 Jul '05  
GeneralRe: C# Create ChannelmemberStephen Huen7:55 12 Jul '05  
GeneralRe: C# Create ChannelmemberAlan Hendry0:33 21 Jul '05  
Generalcannot get "Delete Channels" to be seenmemberSalberoni14:56 27 Apr '05  
GeneralRe: cannot get "Delete Channel" to be seenmembersalberoni15:17 27 Apr '05  
GeneralRe: cannot get "Delete Channel" to be seenmemberStephen Huen18:35 27 Apr '05  
General[help] change location of "Create Channel" optionmemberR. Queiroz7:40 7 Sep '04  
GeneralRe: [help] change location of "Create Channel" optionmemberStephen Huen9:32 7 Sep '04  
GeneralRe: [help] change location of "Create Channel" optionmemberR. Queiroz10:42 7 Sep '04  
GeneralRe: [help] change location of "Create Channel" optionmemberStephen Huen11:56 7 Sep '04  
GeneralRe: [help] change location of "Create Channel" optionmemberR. Queiroz0:54 8 Sep '04  
GeneralRe: [help] change location of "Create Channel" optionmemberStephen Huen5:52 8 Sep '04  
GeneralStart Publishing Datemembertarajan22:10 23 Aug '04  
GeneralRe: Start Publishing DatememberStephen Huen8:17 25 Aug '04  
GeneralV1.1 requires MCMS SP1amemberStephen Huen6:35 9 Jul '04  
GeneralFix on the missing buttonsmembereriknils20:49 31 May '04  
GeneralRe: Fix on the missing buttonsmemberWillemM20:34 9 Jul '04  
GeneralFix on the missing buttonssussAnonymous20:47 31 May '04  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 17 May 2006
Editor: Smitha Vijayan
Copyright 2004 by Stephen Huen
Everything else Copyright © CodeProject, 1999-2008
Web16 | Advertise on the Code Project