<txp:page_url /> single tag, 1 attributes

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

type="request_uri" 
  • 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)
<txp:page_url /> 1 examples

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>