Microsoft Content Management Server Resources
MCMSfaq.com
subcribe to the feed.
r.a.d.editor MCMS edition AchieveForms Lite CMS.Rapid MCMS Manager GotDotNet User Samples MondoSearch Metalogix Migration Assistant Cubik OneStopCMS IT Hit Web Author Enhancements
MCMSfaq.com Home >  Code Samples >  MCMSfaq.com Code Samples >  Floating Console for MCMS 2002

Floating Console for MCMS 2002

Updated: March 28th 2005.

 

Introduction

A couple of guys from Plural produced an article and sample of a Floating Console for MCMS 2001 which was published on MSDN, and this is simply adapted from that using their JavaScript along with the new MCMS 2002 console ASCX. The below screenshot shows the console in action:

Screenshot of Floating Console in action

Double clicking the title of the console will hide/show the actions. The console can be dragged by click dragging the console title. I've implemented this on a couple of projects with modifications to the console HTML/CSS and JavaScript to make the console semi-transparent and improve the drag experience.

Implementing the sample.

To implement the sample, copy the FloatingConsole.ascx file to the Console folder within your MCMS project in VS.NET. You may need to alter the Control Page Directive to inherhit from your project if VS.NET doesn't automagically:

       <%@ Control CodeBehind="FloatingConsole.ascx.cs" Language="c#"
       AutoEventWireup="false" Inherits="mcmsrs.Console.FloatingConsole" %>

The console requires a JavaScript file to be placed within the Shared folder of your project, however you can change the location if desired by modifying the JavaScript reference:

       <script language="JavaScript" src="../shared/console.js"></script>

Also remember to add any custom console actions in your project to the ASCX!!

Download the sample files: FC_2002.zip (49Kb)


© 2001 - 2006 Triumph Media Limited. All rights reserved.
Microsoft Corporation is in no respect affiliated with www.mcmsfaq.com.
harbar.net