Textpattern logo

Help?

page url

From Textbook

<txp:page_url />

The page_url tag is a single tag. It is used to return a particular component of the url from the current page being displayed.

Attributes

Tag will accept the following attributes (case-sensitive):

type="type"
Specifies which component of the current page's url will be returned.
Values:
request_uri: current article's URL-title including any query string
id: current article's id on a single article page
s: current page's section
c: current page's category
q: search query string
pg: current page number in article list mode
month: current page's month on time based article lists
author: current page's author on article lists filtered by author
status: HTTP error response (200, 404)
Default: request_uri.

Examples

Example 1: Show the current article's ID, HTTP status and section

<p>Article ID: <txp:page_url type="id" /><br />
From section: <txp:page_url type="s" />
     (Result: <txp:page_url type="status" />)</p>

Translations [?]...

About Textbook