Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-19 15:04:56

rsskga
Member
From: San Francisco, CA USA
Registered: 2007-06-23
Posts: 50
Website

How to pass page_url into an outbound link

I want to use the <txp:page_url /> tag to pass individual pages into Validators.
For instance, for the CSS validator, how do I connect the TXP tag in the following:

<a href=“http://jigsaw.w3.org/css-validator/validator?uri=<txp:page_url />&amp;warning=1&amp;profile=css3&amp;usermedium=all” target=”_blank”>

I’ve tried using question marks, quotes and plus signs – and none of them do the job.
Thanks in advance for any help.


Swim Kitten, A Magento Site
When nothing but incredibly revealing dresses and swimwear will do

Offline

#2 2008-02-19 16:14:31

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: How to pass page_url into an outbound link

Well, you could add domain there – as page_url doesn’t output it. Another way is use validator referer value:

<a href="http://validator.w3.org/check?uri=referer">
<a href="http://jigsaw.w3.org/css-validator/validator?uri=referer">

Offline

Board footer

Powered by FluxBB