Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-02-22 17:54:05

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

[textile] Textile links and url with parentheses

Hello textile users,

For first time, I want to create a link to a url that has parentheses.
Yes, WIkipedia use sometime parentheses in url. For exempl this :

http://fr.wikipedia.org/wiki/Page_(livre)

And if I write that :

"$":http://fr.wikipedia.org/wiki/Page_(livre)

the last parenthesis is not included in the link : fr.wikipedia.org/wiki/Page_(livre)

Someone has an idea ?

Thanks

Offline

#2 2013-02-22 18:42:02

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [textile] Textile links and url with parentheses

I don’t know if there is a way to make Textile include the closing parenthesis, but as a temporary solution you could use a url shortener like bit.ly.

Offline

#3 2013-02-22 19:17:31

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: [textile] Textile links and url with parentheses

As a workaround try using a link alias, like so:

This is "the wikipedia page about a page":page, in french.

[page]http://fr.wikipedia.org/wiki/Page_(livre)

Offline

#4 2013-02-22 20:02:56

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [textile] Textile links and url with parentheses

And yet another one ;)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2013-02-22 21:07:17

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: [textile] Textile links and url with parentheses

uli wrote:

And yet “another one”

Tried it on txstyle.org/ and yes it works, but apparently only with a funny combination of HTML and HEX codes:

"http://fr.wikipedia.org/wiki/Page_(livre)":http://fr.wikipedia.org/wiki/Page_%28livre%29

Last edited by ax (2013-02-22 21:10:40)

Offline

#6 2013-02-23 12:25:07

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: [textile] Textile links and url with parentheses

Thanks all for tips :)

Finaly, the only alternative to

"$":http://fr.wikipedia.org/wiki/Page_(livre) 

to have a url readable and functional link is

"http://fr.wikipedia.org/wiki/Page_(livre)":http://fr.wikipedia.org/wiki/Page_%28livre%29

dual encoding : too complicated, a true geek stuff.

I abandon the idea of ​​using a readable url.

Resolved, thx

Offline

Board footer

Powered by FluxBB