Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-02 21:56:40

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

site_url in article bodies doesn't work

hello all, i have the following problem:

i am setting up a site in a subdirectory, which shall later be moved to the top level, when programming’s done. a lot of the already put up articles contain links to other articles of that site.
the problem is, that i can’t seem to be able to use the
<code><txp:site_url /></code>
tag within article bodies.
It doesn’t produce a hyperlink on linktext here, instead the link shows up as clear text,

like
<code>
&quote;vardi&quote;: < txp:site_url />blog/vardi2
</code>

shows up as
<code>
&quote;vardi&quote;:http://subdomain.domain.com/blog/vardi2
</code>

instead of
vardi

which way can i use a txp produced site url prefix in article bodies then?

<code><a href=”<txp:site_url />blog/vardi2”>vardi</a></code>
produces a hyperlink, but that link doesn’t go anywhere.

<code><a href=<txp:site_url />blog/vardi2>vardi</a></code>
(same without quotes) worx, but i still don’t get why just using the textile linking doesn’t work with the tag alone. erm got me?

any ideas?

Last edited by jayrope (2006-09-02 22:19:34)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#2 2006-09-02 23:46:28

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

Re: site_url in article bodies doesn't work

jayrope wrote:

… shows up as
<code>
&quote;vardi&quote;:http://subdomain.domain.com/blog/vardi2
</code>

instead of
vardi

That is the way the tag should behave.

which way can i use a txp produced site url prefix in article bodies then?

<code><a href=”<txp:site_url />blog/vardi2”>vardi</a></code>
produces a hyperlink, but that link doesn’t go anywhere.

That one should work, are you sure that you entered subdomain.domain.com under Site URL in Admin > preferences?

Offline

#3 2006-09-03 00:37:15

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

Re: site_url in article bodies doesn't work

yes i did, and funnily enough the version without quotes in the code does actually work. i just don’t get the logic behind this behaviour…
and why’s the direct use of the tag meant to work up as text instead of a hyperlink?

just out of curiosity…

Last edited by jayrope (2006-09-03 00:37:50)


A hole turned upside down is a dome, when there’s also gravity.

Offline

#4 2006-09-03 02:48:20

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: site_url in article bodies doesn't work

Because the tag is site_url, not site_link.


Alex

Offline

#5 2006-09-03 09:14:12

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

Re: site_url in article bodies doesn't work

oh. getting it. so maybe i should ask further in the textile forum. will do that. muchas gracias for indications.


A hole turned upside down is a dome, when there’s also gravity.

Offline

Board footer

Powered by FluxBB