How to set posting properties content in authoring mode directly

MCMS allows editing of placeholder content by shipping placeholder control. But to edit property content it is necessary to first save the page and then open the property page and modify the content manually. In addition using the property page will allow to modify all properties and not only a subset which might be preferable…


Accessing placeholder content and DataSource.RawContent

I have seen several posts in the newsgroup where people suggested to use the DataSource.RawContent property to access the content of a placeholder. This method is highly not recommended! It completly bypasses the internal processing if the actual placeholder implementation which means that the content received relies on the current implementation of the placeholder. If…


FAQ in May 2004: where is Stefan?

This is the first time since more than one year that I will not have internet access and will not be able to answer MCMS newsgroup questions.I hope you guys are able to survive a month without me. 😉But I’m sure you will.On the right you can see the tour I have planned.Keep your fingers…


A more elegant solution to avoid ugly URL’s with MCMS

Today I played around a little bit more with HttpModules and implemented a more elegant solution for the problem as discussed in my previous post. Especially the second problem – normal postback caused by ASP.NET controls – was not properly solved as it required to do the modification on every template file. Using an HttpModule avoids this overhead. Here…


How to enforce SSL protection for channels and posting using an HttpModule

Today a question in the newsgroup reminded me that I never created an HttpModule on my own.I have heard about several samples for HttpModules – mainly to allow custom authentication or to provide an enhanced workflow engine but I have never written one. So I decided that it is time for me to fill this…


How to retrieve the current context from a posting object

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…


How to use my custom code in VB.NET projects

Most of the sample code I have written is in C#. To get this converted to VB.NET the following tools are very useful: All three provide only translation from C# to VB.NET. If someone needs conversion from VB.NET to C# I found the following tools:


Creating a RSS Feed for your MCMS Web site

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…


Hiding elements on a posting in presentation and authoring mode

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…


Unnecessary custom Placeholder controls

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…