| Stefan [MSFT] 2006-07-27, 1:21 pm |
| Hi Göran,
yes it is save to use this method.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Göran Tänzer" <GranTnzer@discussions.microsoft.com> wrote in message
news:F736DA20-F5A9-4492-8BB1-D90A7E79D5A9@microsoft.com...
> Hi,
>
> private bool MapChannelToHostHeaderEnabled(CmsContext
ctx)
> {
> return (ctx.RootChannel.UrlModePublished == "http://Channels/");
> }
>
> http://support.microsoft.com/kb/887530
>
> i have some problems with this function. When used in authoring mode it
> fails becaus the RootChannel.UrlModePublished is
> "http://Channels/?wbc_purpose=Basic&WBCMODE=PresentationUnpublished"
>
> Is it "save" to change it to
> return (ctx.RootChannel.UrlModePublished.StartsWith("http://Channels/");
> or could this fail in some situations?
>
> Regards
>
> göran
|