Home
TeamSite
Opening hyperlink in new window
Monil
Hi,
I have a DCR in which I have created a hyperlink and selected the Target frame as New Window (_blank) so that the URL in the link opens in a new window. But when I preview this DCR, the link opens the URL in the same window. Could someone pls help as to what I need to do make the URL open in a new window.
Find more posts tagged with
Comments
gzevin
did you inspect the source HTML of the generated file to ensure that this attribute had been properly carried over?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Monil
Greg..Thanks for the reply
I checked the HTML source of the generated preview page and the target=_blank is missing in the hyperlink. I am trying to find the file which inserts the target=_blank to the hyperlink in the DCR when the user selects the New Window (_blank) option.
gzevin
If I were you, I would check the DCR itself, to make sure the link is correct. And only then it makes sense to start investigating further (in .TPL).
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Monil
I tested the DCR and it has the target=_blank like this :
<OfferingContent><a href="
http://w3.ibm.com/"
target="_blank">hyperlink</a>
</OfferingContent>
but the preview HTML code is missing the target=_blank -
<a href="
http://w3.ibm.com/">hyperlink</a>
gzevin
now look at your presentation template and check what is being done to the contents of that particular DCR field. Do you parse it somehow, etc?
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Adam Stoller
When you say "preview the DCR" are you talking about generating a page from the DCR via the Preview option - or are you talking about "viewing" the DCR in "read-only" mode by clicking on the link to the DCR in the browser view or selecting it and clicking the View button?
In the former - as Greg indicated - check to see what the PT is doing with the DCR code.
In the latter - I'm not sure, but you might try getting rid of the "'s and replacing them with either single or double-quote verbatim (as either are acceptable within the CDATA portion of XML)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Monil
Yes, I am referring to generating a page from the DCR with the preview option.