Click here to Skip to main content
6,306,412 members and growing! (17,293 online)
Email Password   helpLost your password?
Enterprise Systems » Content Management Server » General     Intermediate

Microsoft Content Management Server Create/Delete Channel Web Author Plug-ins

By Stephen Huen

This 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
Posted:23 Jan 2004
Updated:17 May 2006
Views:71,114
Bookmarked:19 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
10 votes for this article.
Popularity: 4.15 Rating: 4.15 out of 5
1 vote, 10.0%
1
1 vote, 10.0%
2

3
1 vote, 10.0%
4
7 votes, 70.0%
5

Sample Image - cmscreatechannel.gif

Description

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.

Installation Procedures

  1. Copy all the files in the directory WebControlLibray to the web control library project of your MCMS solution.
  2. In ChannelDeleteAction.vb, line 11, update WebControlLibraryRootNamespace with your web control library root namespace.
  3. Copy the directory WebAuthor to the root of your MCMS site.
  4. For the ASP.NET 1.x version only, update ProjectRootNamespace with your project root namespace in ChannelCreateDlg.aspx and PreviewTemplateDlg.aspx.
  5. In your console control, register the custom actions, 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="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>
  6. Rebuild your site solution in Visual Studio, and you are all set.

History

  • V1.0 - 2004.01.24 - Base.
  • V1.1 - 2004.04.08
    • Fixed dialog 404 error when HTML base tag is not rendered by MCMS.
    • Code clean up.
  • V1.2 - 2004.07.10
    • MCMS SP1a compatible.
    • Fixed the missing buttons in the dialog.
    • Split CustomAction.vb into ChannelCreateAction.vb and ChannelDeleteAction.vb.
  • V1.3 - 2004.10.09 - Added an option to create a default page.
  • V1.31 - 2005.07.08 - Renamed the namespaces and updated the installation instructions.
  • V1.4 - 2006.05.16 - 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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Stephen Huen


Member

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

Other popular Content Management Server articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 12 of 12 (Total in Forum: 12) (Refresh)FirstPrevNext
Generalhow to configure cms PinmemberPrathvi23:12 3 Aug '05  
GeneralAccess denied to 'c:\inetpub\wwwroot\sddc\WebAuthor\web.config'. Failed to start monitoring file changes. Pinmembervarasani8:55 2 Sep '04  
GeneralRe: Access denied to 'c:\inetpub\wwwroot\sddc\WebAuthor\web.config'. Failed to start monitoring file changes. Pinmembervarasani11:15 2 Sep '04  
GeneralSystem.NullReferenceException: Object reference not set to an instance of an object Pinmembervarasani7:42 1 Sep '04  
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object PinmemberStephen Huen14:26 1 Sep '04  
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object PinsussAnonymous15:43 1 Sep '04  
GeneralDelete menu item? Pinmembereriknils22:28 17 Aug '04  
GeneralRe: Delete menu item? PinmemberStephen Huen5:09 18 Aug '04  
Generaltranslate to c#? Pinsusstarajan6:41 11 Feb '04  
GeneralRe: translate to c#? PinmemberStephen Huen6:29 16 Apr '04  
Generalq PinsussAnonymous21:13 3 Jun '04  
GeneralGreat PinsussAnonymous21:43 27 Jan '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-2009
Web12 | Advertise on the Code Project