PDA

View Full Version : Opening brochure pages in targets other than self


skinnybloke
22-Feb-2003, 01:55 PM
I have been looking at setting up a brochure page with fragments. On one of the fragments I have created a text link and an image link to a item within the catalog. Standard stuff within Actinic.

The resultant page has the html:
<A HREF="xxxxxx.html?PRODREF=011%2d2031 TARGET="_parent">

I have set this brochure page up so that is a popup that is launched when the homepage is accessed. What I want to achieve is to be able to click on the catalog item to open a web page in the browser window that spawned the popup, and then to close the popup.

I can achieve this by replacing the code above with this code.

<A HREF="xxxxxx.html?PRODREF=011%2d2031" onClick="opener.location = href;self.close();return false;">

The question I have is how can I get the brochure/fragment page to generate this code instead of the default code?

Thanks
David

cdicken
24-Feb-2003, 01:25 PM
The code for the brochure links can be found in 'Design | Text | Website | HTML'. Click 'Go to' and find prompt ID 2056.

<A HREF = %s?PRODREF=%s%s TARGET="%s">%s</A>

Try replacing this with:

<A HREF=%s?PRODREF=%s%s onClick="opener.location = href;self.close();return false;"><!-- %s -->%s</a>