Coding Tips

I received the question if it is possible to get the current active context inside a custom placeholder definition. This is not the same as within a placeholder control as a placeholder control always uses the CmsHttpContext. A placeholder can live without the CmsHttpContext (e.g. in a CmsApplicationContext). To check which mode the context is […]

Yesterday I received the question to add an RSS feed to one of our internal MCMS Web sites. At that moment I did not know more about RSS as that this blog has an RSS feed to be able to keep updated with my writings. 😉 So I searched for a document explaining what RSS […]

A very convenient way to achieve this but unfortunatelly not very good documented is used in the Default Console shipped with MCMS. To hide items (e.g. a Placeholder Control) in Presentation mode use the following code in your template ASPX file: <cms:AuthoringModeContainer id=”hiddenInPresentation1″ runat=”server”>…controls and html not to be shown in Presentation mode…</cms:AuthoringModeContainer> To hide items […]

Everyday is a good day to learn something new about MCMS 2002. Today I learned that lots of custom placeholder controls I and others have written are not really necessary! The same functionality can be achieved with the standard Placeholder controls and and a badly documented feature: PresentationTemplates A PresentationTemplate allows to modify the default behaviour […]

An often requested feature is a tool to create a static copy of MCMS Web site. CMS 2001 shipped the SiteStager tool which is also coming with CMS 2002 but it is limited to ASP based templates. ASP.NET based templates are not supported. Creating static copies is often very useful – e.g. when you create […]

I often received request from customers whether the tree view or list view elements can be sorted by default. And also about complains about the fact that the default for the number of items being displayed in List View always defaults to 5 items. This is not very comfortable. To address these questions I sat down […]

ASP.NET output caching is a mandatory feature for all high performance Web sites. MCMS extends the ASP.NET output caching to allow caching of content based on (e.g.) the Posting and User Context. To allow this MCMS adds new token strings which can be configured using the VaryByCustom property of the OutputCache directive. Here are some samples […]

MCMS 2002 only offers you the login of the current user. Not the Name or Email address. In some situations – like Email notification – it is necessary to get the Email address and other information which is stored in Active Directory. The sample code below allows to read this information from Active Directory. You […]

The publishing API for MCMS 2002 has several design limitations. A workaround for one of these design limiations will be discussed in this article. The API contains a method to create a new channel but it is missing the functionality to also create custom properties in a channel. This is even more worth due to […]

BMP files are valid files when using Internet Explorer. But most other browser types are not able to display BMP files correct. So – in an Internet scenario – it is a good idea to prevent that BMP files can be uploaded to the MCMS Repository There are two things to consider: upload as a […]

In Webauthor when a new window opens (e.g. Resource Manager) the positioning and size of the window causes the lower right edge of the window to be out of the screen when Internet Explorer is run in Fullscreen mode. To solve this this issue you need to modify some lines of code in the following […]