Microsoft Content Management Server - Re: Custom HTMLPlaceholder internal links not working

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > January 2007 > Re: Custom HTMLPlaceholder internal links not working





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Custom HTMLPlaceholder internal links not working
Stefan Goßner [MSFT]

2007-01-24, 7:39 am

Hi Arjuna,

sounds as if you are not surrounding the URL with double quotes in the
placeholder.
MCMS looks for strings inside double quotes and checks if these are URLs.

Cheers,
Stefan

"Arjuna" <Arjuna@discussions.microsoft.com> wrote in message
news:10EA557D-1CF3-4CC6-940E-A591F9BE358E@microsoft.com...
> Hi,
>
> I have created a custom Placeholder deriving from
> "HtmlPlaceholderControl".
> Normally when you create a link to an internal Posting from the standard
> HtmlPlaceholder, the URL changes appropriately depending if you are on the
> authoring site or the public site.
>
> For example the link might look like the following in the Authoring Site
> http://localhost/NR/exeres/6E99C2ED...tionUnpublished
>
> And the same link will look like the following in the public site
> http://localhost/ABCD/Research/URL+Other.htm
>
> My problem is that this same functionality is not available in the custom
> Placeholder I wrote, which derives from the standard HtmlPlaceholder. If I
> insert some text to this Placeholder through a Posting and link this text
> to
> another Posting then the URL of the link stays constant it does not change
> between the Authoring and Public Site. To further explain if I link this
> text
> to a published Posting then the link will always be something like
> "http://localhost/ABCD/Research/URL+Other.htm" and if I link this text to
> a
> Posting that is not Published then the link will look something like
> "http://localhost/NR/exeres/6E99C2ED-D016-4E5A-8445-7FB9145DCE11.htm?NRMODE=Unpublished&wbc_purpose=Basic&WBCMODE=PresentationUnpublished".
> The problem is that when I switch to the live site this link remains as it
> is
> so when an anonymous user clicks on this link that user is taken to a page
> to
> which the user has no access.
>
> So my question is how do I get the functionality that comes as a standard
> in
> the HtmlPlaceholder Control.
>
> Thanks
> Arjuna.
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com