Open Link in new window

Discussion in 'Templates customization' started by jschemmel, Oct 4, 2006.

  1. jschemmel

    jschemmel New Member

    Joined:
    Sep 16, 2006
    Messages:
    15
    On the member.php page, when a link to a subscription is clicked I'd like the subscription to open in a new window. I must be missing something in the syntax because I keep getting an error message.

    Can anyone provide the modification to the code below so the link will open in its own window?

    <!-- table to align subscriptions -->
    {foreach from=$member_products item=p}
    <li>{if $p.url gt "" }<a href="{$p.url}">{$p.title}</a>
    {else}<b>{$p.title}</b>
    {/if}
    </li>
    {/foreach}

    Thanks!!
  2. xe912

    xe912 New Member

    Joined:
    Feb 13, 2006
    Messages:
    15
    if i am right, change the line:

    Code:
    <li>{if $p.url gt "" }<a href="{$p.url}">{$p.title}</a>
    to:

    Code:
    <li>{if $p.url gt "" }<a href="{$p.url}" target="_blank">{$p.title}</a>
  3. jschemmel

    jschemmel New Member

    Joined:
    Sep 16, 2006
    Messages:
    15
    That works great! Thank you so much for the help.

Share This Page