Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-07-13 21:53:52

lucass
Member
Registered: 2012-07-07
Posts: 21

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

#2 2012-07-14 10:08:51

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Relative URLs

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

Try that on 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

#3 2012-07-14 14:45:40

lucass
Member
Registered: 2012-07-07
Posts: 21

Re: Relative URLs

Hi Markuz,

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

Offline

#4 2012-07-14 15:02:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2012-07-15 11:33:39

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
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

#6 2012-07-15 11:55:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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>.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2012-07-15 14:07:14

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,595
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

#8 2012-07-15 16:52:28

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
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

Board footer

Powered by FluxBB