2012-07-16 09:15:05

gaekwad
Member
lambda
Real name: Pete Cooper
From: CrackingtonHaven, Cornwall, UK
Known languages: en-GB
Website

txp:site_url in a hyperlink

Hi.
I’m scratching my head on something which is likely very simple and will no doubt make me feel rather stupid when I know the answer.

I want to link to a given page on a site, in this case a section called contact. I want to link it from an article, and I have this as my article body:

<a href=”<txp:site_url />contact”>Contact form</a>

On a fresh install of 4.4.1 in my development environment, this outputs…well, nothing.

I have had a number of very late nights over the past week or so, and I will admit that 1015am on a Monday is early for me, but I’d appreciate a pointer on this if anyone has ideas. I’d be even more grateful if this saves me from hulksmashing my Dell screen.

Thank you in advance.

Last edited by gaekwad (2012-07-16 09:28:54)

Offline

 

2012-07-16 11:06:32

uli
Moderator
omega
Real name: Uli
From: Cologne/Köln
Known languages: de > en

Re: txp:site_url in a hyperlink

Try

==<a href="<txp:site_url />contact">Contact form</a>==

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

Offline

 

2012-07-16 11:50:29

gaekwad
Member
lambda
Real name: Pete Cooper
From: CrackingtonHaven, Cornwall, UK
Known languages: en-GB
Website

Re: txp:site_url in a hyperlink

Gah! Of course – huge thanks, Uli.

Offline

 

2012-07-17 16:25:31

Destry
Moderator
omega
From: Strasbourg, France
Known languages: en, fr
Website

Re: txp:site_url in a hyperlink

Uli,

What does the double equal marks do? I’ve never seen that before. Is that Textile for something?

Wouldn’t just doing this work, or am I missing something? "Contact":/contact

Last edited by Destry (2012-07-17 16:27:34)

Offline

 

2012-07-17 16:32:04

gaekwad
Member
lambda
Real name: Pete Cooper
From: CrackingtonHaven, Cornwall, UK
Known languages: en-GB
Website

Re: txp:site_url in a hyperlink

Destry wrote:

What does the double equal marks do?

My understanding is that == escapes Textile formatting.

Offline

 

2012-07-17 19:52:02

Destry
Moderator
omega
From: Strasbourg, France
Known languages: en, fr
Website

Re: txp:site_url in a hyperlink

Ah, thanks. I knew there was something for escaping it, but never really used it before so didn’t know offhand.

Offline

 

2012-07-18 00:49:20

uli
Moderator
omega
Real name: Uli
From: Cologne/Köln
Known languages: de > en

Re: txp:site_url in a hyperlink

Destry wrote:

What does the double equal marks do?

Yup, like gaeqwad said. It’s effective, typed quicker than notextile. , not as easy overlooked and deleted as a blank at the beginning of the line and, not least, it looks like a typographical barrier: don’t touch!

Last edited by uli (2012-07-18 00:52:34)


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

Offline

 

Powered by FluxBB