Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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>
"e;vardi"e;: < txp:site_url />blog/vardi2
</code>
shows up as
<code>
"e;vardi"e;: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>
"e;vardi"e;: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
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
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
Pages: 1