2012-07-13 21:53:52

lucass
Member
beta

Relative URLs

Hi everyone,

Is it possible to make the URLs relative without using a plugin? (link)

Thanks!

Last edited by lucass (2012-07-13 21:54:04)

Offline

 

2012-07-14 10:08:51

merz1
Member
pi
Real name: Markus Merz
From: Hamburg
Known languages: German, English
Website

Re: Relative URLs

"$":/
"$":lib
"$":/lib
"$":bla/lib

Try that on http://textile.sitemonks.com (Textile 2.2, The newest is 2.4).

Or which URL are you asking for?


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

 

2012-07-14 14:45:40

lucass
Member
beta

Re: Relative URLs

Hi Markuz,

all of them. I like to keep the source code as clean as possible ;)

Offline

 

2012-07-14 15:02:09

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: Relative URLs

lucass wrote:

all of them. I like to keep the source code as clean as possible ;)

Hi Licas,

no, you cannot do it without the use of a plugin.

Offline

 

2012-07-15 11:33:39

merz1
Member
pi
Real name: Markus Merz
From: Hamburg
Known languages: German, English
Website

Re: Relative URLs

Guys, the code above produces relative URLs. Check HTML source code (Or am I missing something?).


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

 

2012-07-15 11:55:24

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: Relative URLs

Hi Markus,

I guess that Lucas also wants relative urls in such lists as <txp:article_custom><txp:permlink><txp:title /></txp:permlink></txp:article_custom>.

Offline

 

2012-07-15 14:07:14

jakob
Moderator
omega
From: Germany
Known languages: en, de
Website

Re: Relative URLs

you could always construct your own permlinks according to the permlink structure you’re using, e.g.:

<txp:article_custom>
   <a href="/<txp:section />/<txp:article_url_title />" title="Permlink to ‘<txp:title />’"><txp:title /></a>
</txp:article_custom>

TXP Builders – finely-crafted code, design and txp

Offline

 

2012-07-15 16:52:28

merz1
Member
pi
Real name: Markus Merz
From: Hamburg
Known languages: German, English
Website

Re: Relative URLs

lucass Relative URLs are not such a great idea eg in articles read via (online) RSS reader/parser.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

 

Powered by FluxBB