link target

Is there a way to change the link target so that links created with:

[blablabla->http://blablabla.bla]

opens in a new window?

/Mattias

Is there a way to change the link target so that links created with:

[blablabla->http://blablabla.bla]

opens in a new window?

/Mattias

I am interested in this too, Mattias, so I've done a little reading this
evening,
There's a whole article about it (in French) at:
  http://www.spip.net/fr_article1913.html
Basically no - the Spip developers don't like the idea. (They feel it's
forcing the viewer to open a new window, when he/she could decide to do so
or not, by holding down the Shift key, etc.)

So for individual links, you have to put:

  <a href="http://blablabla.bla" target="_blank">Bla Bla</a>

in the text.

I've tried:

   [Bla Bla->http://blablabla.com" target=_blank"]

and it works. However, in the above mentioned article, this workaround is
specifically discouraged.

In a template, you can use the filter "|liens_ouvrants" which forces
external links (i.e. not to pages on the current site) which come from Spip
tags to open in a new window.

Well, I have some links on our own site which open larger photos, and which
it would be good to show in a new window... but it looks as if I'm back to
writing HTML for these.

Paolo

(They feel it's
forcing the viewer to open a new window, when he/she could decide to do so
or not, by holding down the Shift key, etc.)

Too bad... If I feel it's a good idea to force the viewer to open some links
in a new window I will do so with or without help from the spip tags, but
it's a shame since I liked the [text->url] construction.

I've tried:

   [Bla Bla->http://blablabla.com" target=_blank"]

and it works. However, in the above mentioned article, this workaround is
specifically discouraged.

Why is this worse that using the <a> tag? It seem like a resonable thing to
do?

/Mattias

On Tuesday 07 October 2003 00.34, you wrote:

> Is there a way to change the link target so that links created with:
>
> [blablabla->http://blablabla.bla]
>
> opens in a new window?
>
> /Mattias

I am interested in this too, Mattias, so I've done a little reading this
evening,
There's a whole article about it (in French) at:
  http://www.spip.net/fr_article1913.html
Basically no - the Spip developers don't like the idea. (They feel it's
forcing the viewer to open a new window, when he/she could decide to do so
or not, by holding down the Shift key, etc.)

So for individual links, you have to put:

  <a href="http://blablabla.bla" target="_blank">Bla Bla</a>

in the text.

I've tried:

   [Bla Bla->http://blablabla.com" target=_blank"]

and it works. However, in the above mentioned article, this workaround is
specifically discouraged.

In a template, you can use the filter "|liens_ouvrants" which forces
external links (i.e. not to pages on the current site) which come from Spip
tags to open in a new window.

Well, I have some links on our own site which open larger photos, and which
it would be good to show in a new window... but it looks as if I'm back to
writing HTML for these.

Paolo

Ahh... I just noticed how the quotationmarks are placed. I can see that it
isn't a very clean way to do it.

However, it would be very nice if it was possible to just add the target after
the link like: [text->url target="_blank"]

hint hint... :slight_smile:

/Mattias

> I've tried:
>
> [Bla Bla->http://blablabla.com" target=_blank"]
>
> and it works. However, in the above mentioned article, this workaround is
> specifically discouraged.

Why is this worse that using the <a> tag? It seem like a resonable thing to
do?

/Mattias

On Tuesday 07 October 2003 00.34, you wrote:
> > Is there a way to change the link target so that links created with:
> >
> > [blablabla->http://blablabla.bla]
> >
> > opens in a new window?
> >
> > /Mattias
>
> I am interested in this too, Mattias, so I've done a little reading this
> evening,
> There's a whole article about it (in French) at:
> http://www.spip.net/fr_article1913.html
> Basically no - the Spip developers don't like the idea. (They feel it's
> forcing the viewer to open a new window, when he/she could decide to do
> so or not, by holding down the Shift key, etc.)
>
> So for individual links, you have to put:
>
> <a href="http://blablabla.bla" target="_blank">Bla Bla</a>
>
> in the text.
>
> I've tried:
>
> [Bla Bla->http://blablabla.com" target=_blank"]
>
> and it works. However, in the above mentioned article, this workaround is
> specifically discouraged.
>
> In a template, you can use the filter "|liens_ouvrants" which forces
> external links (i.e. not to pages on the current site) which come from
> Spip tags to open in a new window.
>
> Well, I have some links on our own site which open larger photos, and
> which it would be good to show in a new window... but it looks as if I'm
> back to writing HTML for these.
>
> Paolo

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

> [Bla Bla->http://blablabla.com" target=_blank"]
>
> and it works. However, in the above mentioned article, this
> workaround is specifically discouraged.

Why is this worse that using the <a> tag? It seem like a
resonable thing to do?

I suppose this article should be translated, but it doesn't seem to me the
most urgent one to do (5 more were done in English over the weekend, by the
way).

The explanation given is that it may be incompatible with future features,
for example, one which which would automatically check the validity of the
site's links.

Basically, it seems to be the opinion of the Spip team that:
1) Viewers know how to either request a new window or not.
2) Opening a new window is, of itself, discourteous.
3) Providing a feature like this at the level at which authors/translators
can type it in (often without understanding the difference between the two
possibilities) makes extra hassle for webmasters.

I disagree with them on 1) - most viewers don't! But I do understand the
force of argument number 3). I wish that the feature could be provided, but,
say with the option for the webmaster to turn it off in the site
configuration.

Too bad... If I feel it's a good idea to force the viewer to open some

links

in a new window I will do so with or without help from the spip tags, but
it's a shame since I liked the [text->url] construction.

I think it's a shame too, because there are situations in which the
author/webmaster (who knows what the link is going to show) can *help* the
viewer by automatically providing a new window.
However, http://www.spip.net/fr_article1913.html says "after mature
reflection, we're not going to change our minds".

Paolo

Why is this worse that using the <a> tag? It seem like a
resonable thing to
do?

They argue that in a further release, they may add arguments in the link
tag, and these target tags may then suffer dysfunctions.
But I agree that the choice, whether to open a new window or not, should be
left to the user.

Otherwise there is a filter |liens_ouvrant. For instance
[(#TEXTE|liens_ouvrant)] would open a new window on each [xxx->yyyy] tag
within the text.

Bernard Martin-Rabaud
martinrabo@wanadoo.fr

-----Message d'origine-----
De : spip-en-bounces@rezo.net [mailto:spip-en-bounces@rezo.net]De la
part de Mattias Nyrell
Envoyé : mardi 7 octobre 2003 09:10
À : spip-en@rezo.net
Objet : Re: [Spip-en] link target

> (They feel it's
> forcing the viewer to open a new window, when he/she could
decide to do so
> or not, by holding down the Shift key, etc.)

Too bad... If I feel it's a good idea to force the viewer to open
some links
in a new window I will do so with or without help from the spip tags, but
it's a shame since I liked the [text->url] construction.

> I've tried:
>
> [Bla Bla->http://blablabla.com" target=_blank"]
>
> and it works. However, in the above mentioned article, this
workaround is
> specifically discouraged.

Why is this worse that using the <a> tag? It seem like a
resonable thing to
do?

/Mattias

On Tuesday 07 October 2003 00.34, you wrote:
> > Is there a way to change the link target so that links created with:
> >
> > [blablabla->http://blablabla.bla]
> >
> > opens in a new window?
> >
> > /Mattias
>
> I am interested in this too, Mattias, so I've done a little reading this
> evening,
> There's a whole article about it (in French) at:
> http://www.spip.net/fr_article1913.html
> Basically no - the Spip developers don't like the idea. (They feel it's
> forcing the viewer to open a new window, when he/she could
decide to do so
> or not, by holding down the Shift key, etc.)
>
> So for individual links, you have to put:
>
> <a href="http://blablabla.bla" target="_blank">Bla Bla</a>
>
> in the text.
>
> I've tried:
>
> [Bla Bla->http://blablabla.com" target=_blank"]
>
> and it works. However, in the above mentioned article, this
workaround is
> specifically discouraged.
>
> In a template, you can use the filter "|liens_ouvrants" which forces
> external links (i.e. not to pages on the current site) which
come from Spip
> tags to open in a new window.
>
> Well, I have some links on our own site which open larger
photos, and which
> it would be good to show in a new window... but it looks as if
I'm back to
> writing HTML for these.
>
> Paolo

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en