Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-06 20:02:05

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

[wiki] Missing tags in Tag Index

Hi.

I start this thread to warn about missing tags in documentation.
Well, I just found only one:

Missing tag: <strong> <txp:page_url /> </strong>.

I dont even know what is this tag for! (ok, seems easy to figure it out: to output the current entire page URL? or to output the chunk corresponding to the article title in the URL?

BTW, if doesnt exist, that last would be a really nice new tag: <txp:url_title /> to output the URL title for the individual article page (possible use: another way to give a unique class/id to an element (body, div) and apply unique styles, unique scripting to certan articles… Of course, this can also be done with article ID…


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2005-12-07 02:25:35

RenJonsin
Member
From: Tarpon Springs, FL USA
Registered: 2005-02-06
Posts: 103
Website

Re: [wiki] Missing tags in Tag Index

I threw it in a page template and it outputted the section/id/title part of the url. Then I threw my site url in front of it. That was fun.

<code>The permanent link to this page is http://www.frontstretch.com<txp:page_url /> </code>

Puts out this

The permanent link to this page is http://www.frontstretch.com/results/1722/2005-toyota-tundra-200

At least on that page it does.

Offline

#3 2005-12-07 04:02:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: [wiki] Missing tags in Tag Index

page_url outputs the url “which was given in order to access this page”. Which means it is the url minus the (sub)domain.

You can alternatively have it return the query string:
<txp:page_url type="qs" />

Offline

Board footer

Powered by FluxBB