Forum OpenACS Q&A: Open redirect applications in a new window

Hi,

On my mainsite, I have a list of applications and a few links to other sites (i have mounted these links), which I want to open in a new window.

In /var/lib/aolserver/test/packages/acs-subsite/lib/applications.tcl , I have edited the sql statement to get package_key from apm_packages table. I need to put a target="_blank" in the href link when the package_key is "redirect". This can be done by setting the link_html element property. But I don't want to set this property to all links in the list. So I would like to make something like the link_url_eval property, so that link_html will get different values for each row. How do I do this ?

Is there a better way to open redirect links in a new window ?

I think I should be looking at /var/lib/aolserver/lg/packages/acs-templating/tcl/list-procs.tcl but I don't really understand it. Can you please give me a link which explains how this works.

Thanks,
Nitish