[Moin-user] open target in another window?

skip at pobox.com skip at pobox.com
Wed Nov 30 07:33:04 EST 2005


    >> In HTML I can create a link that opens in another window by using a
    >> target attribute in the <a> tag:
    >> 
    >> <a href="http://www.914club.com/bbs2/index.php?act=ST&f=2&t=41949" 
    >> target="_blank">3.3 Turbo update</a>
    >> 
    >> Is there a way to do that with MoinMoin's link syntax?

    Nir> No, but you can use macro for this. There is a Link macro in the
    Nir> market that may help.

That doesn't seem to work with a non-Wiki URL.  I tried this:

    [[Link(http://www.mojam.com/, target=_blank)]]

but this was rendered:

    <a href="/intra/http://www.mojam.com/"target=_blank class="nonexistent">http://www.mojam.com/</a><p> </p>

where /intra is the base URL of our wiki.  I can easily modify the
definition of the out variable to be conditional on the presence of http://
at the start of the name, but something tells me that's probably not the
correct way to do that.

Thanks,

Skip




More information about the Moin-user mailing list