Microsoft Content Management Server - Linking to a pointer

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2005 > Linking to a pointer





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 Linking to a pointer
Chandy

2005-08-08, 5:52 pm

Hi all,

I need to be able to insert links to a nonsense string using the
htmlplaceholdercontrol but I doesn't seem to let me, is there any way
around it? I try and create a link like follows <a
href="[Link]"><[Link]</a> so that I can later substitute [Link] for a
value at render time but the href="[Link]" becomes
href="/path/to/mcmstemplatefolder/[Link]" instead. The link text is
not effected.

This is using the Telerik RadEditor for MCMS (2.1.2) but I beleive the
behaviour is CMS specific.

Any ideas?

Chandy

Shawn

2005-08-08, 5:52 pm

MCMS does try to validate the link if it thinks that the destination is
within the MCMS repository. I would try one of two things: 1) make
your arbitrary tag look nothing like a link (e.g. [MYLINK] instead of
<a href="[LINK]">; this way your avoid validation or 2) create a custom
placeholder that more appropriate deals with your tag. In fact, the
second approach may be better long term, since you can deal with
rendering the appropriate link within the placeholder, instead of
having to add a bunch of code within the template's code behind.

Shawn

Stefan [MSFT]

2005-08-08, 5:52 pm

Hi Chandy,

I would suggest to escape the whole anchor tag:

~LT~A href="[Link]"~GT~[Link]~LT~/a~GT~

Then replace ~LT~ with < and ~GT~ with > on render time together with the
link.

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
----------------------


"Chandy" <chandy@totalise.co.uk> wrote in message
news:1123505704.039405.226640@g43g2000cwa.googlegroups.com...
> Hi all,
>
> I need to be able to insert links to a nonsense string using the
> htmlplaceholdercontrol but I doesn't seem to let me, is there any way
> around it? I try and create a link like follows <a
> href="[Link]"><[Link]</a> so that I can later substitute [Link] for a
> value at render time but the href="[Link]" becomes
> href="/path/to/mcmstemplatefolder/[Link]" instead. The link text is
> not effected.
>
> This is using the Telerik RadEditor for MCMS (2.1.2) but I beleive the
> behaviour is CMS specific.
>
> Any ideas?
>
> Chandy
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com