Re: [Tiki-users] How to open link in a new window?
Volker Wysk <post-hhF2Jplw28UoZk/[email protected]> Fri, 15 Jul 2022 04:20:12 +0200
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <[email protected]> |
Am Donnerstag, dem 14.07.2022 um 14:58 -0400 schrieb Rick Sapir:
> > > For example, searching for "new window" will help you find the "Open
> > > external links in new window" option on the Text Area control panel.
> >
> > And that's what happened when I tried. But what confuses me, is that there
> > is no "Text Area" (or "Textarea") control panel. So where does the
> > "textarea" link send me?
>
> I believe it is actually labeled (in English, at least) as: "Editing and plugins"
You're right.
>
> tiki-admin.php?page=textarea
>
>
>
> > Okay. That's what I wanted to know.
> >
> > I think I don't want to do it like this, because the links would become
> > dependent on the host name. And I also would like to prefer internal links,
> > because they are renamed automatically when the linked page is renamed. And
> > external links require at least the web server's Tiki root directory to be
> > specified (like "tiki"). And there might be more reasons for prefering
> > internal links. Alas, internal links don't support any links arguments at
> > all.
> >
> >
>
> I agree that internal links are much more preferable. One possible
> workaround, could be to use a "regular" internal link + JQ. You could do
> something like, create your link in wiki syntax:
>
> {DIV(class="myclass")}((Link to a page)){DIV}
>
> And then use something like this in a JQ plugin:
>
> {JQ()}
> $('.myclass a').click( function() {
> window.open( $(this).attr('href') );
> return false;
> });
> {JQ}
> (Note, this is just quasi-code -- YMMV)
>
> You could even put the JQ within a module, then simply add the module to any page in which you want the links to open in a new window.
Thanks for the advice, but this would be rather complicated for a limited
cause.
I'll generate external Tiki links, which open in a new window, for external
MoinMoin links only. (Provided they actually do open in a new window.) It
isn't that important.
Cheers,
Volker
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmLQztwACgkQ+K4ydFOs HoUG6BAApGWcsO0UtTmt8DW9nFk5IF9uWtOrnJvvhEKKTjAqVl2/AXRLHhy8r8ZF iAnIOdvRMmO2q0j7GSK4912zeFBj8laX27lf4bEgIYz4bcE6Yh+MJUwvdozT5crv +L7cCfaWGAY2KueL9p4iFrE4Xx6szMIpNmUC2UZB2g9Uyi4YZKoL1YNTXpBrPZDN EdJNrMcGjHlTvk6g2vB+VyHdWiKqma42KBuVivMMXmVvbLhMY8/6nnElDOav53RB XqvMRYzjxdnYPjEsGPt+SpHHtpu6SDm/keBp2Gv1n0DBnPO/kSngQxx7CCxOHTUr 6qtrU34d4KFULcQne/BHzimoqFDbp+gGuLCYADvvFvmr7SlEB8S1LqFppdqrodiL ndoJ0cINb5GedMWwKd7+Ja3WaKdUmp6HIc9eUSZbe4VG4dwAepwWEWbITiER7Woc t4UtMHQ2sxD8oklMzrtBUSGdKuYrbDJCIYEC01PAkvFtyJuwYSxCVQW7YzyghF8e 2SILbpKDW2hpX5Cq0oEKqelq/wlZZkGkw868xTir7Q2ESV/OAaNjnqSzHl6zgIYO ICunn5bMnc5ANmBMKVo7ghdVhnjdQRCyRxP7oIZj92+OS3EkgvCq2q+OKMkfn8nm Zv92yVP0Q39GRnQ1x2NYX02eDfLzUK93gNwKCds29zS8L675cY8= =p5qg -----END PGP SIGNATURE-----