Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

mta_article_id

This plug-in implements a single tag (mta_article_id) which is intended as a replacement for the built-in article_id tag in and is used to return the numeric “ID” or, optionally, the “URL title” (as would be seen if “Clean URLs” are turned on) of the article being displayed.

Syntax

The mta_article_id tag has the following syntactic structure:

<txp:mta_article_id />

Attributes

The mta_article_id tag will accept the following attribute (note: attributes are case sensitive):

url_title=“integer”

When set to 1, returns the “URL title” of the article instead of the numerical “ID”. Available values: 1 or 0 (default).

Examples

<a name="<txp:mta_article_id url_title="1" />"><txp:title /></a>

<div id="<txp:mta_article_id url_title="1" />" class="article"> ... </div>

Article Request Count:
Keywords/tags:
Initially released:
2006-12-11
Posted here:
13 Dec 2006
Article modified:
20 Jan 2008

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

This plugin is no longer needed as of v.4.0.5:

Textbook: article_id
Textbook: article_url_title

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern