Content last modified Tuesday 24 August 2021
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_author_section

Note: Clean URLs” must be enabled.

This plug-in allows you to link author names to a section containing an article per author, much like bos_author, but also provides some extra behind-the-scenes glue between author sections and article searches by author name.

The following preferences need to be set and can be later changed from the “mta_author_section” tab under the “Extensions” tab:

  • Author section name – The section you intend to store author bio/profile articles.
  • Author article title as – Whether you want the author’s bio/profile article’s title to be their real name or user ID.

It also implements the following single tags:

mta_author

Syntax

The mta_author tag has the following syntactic structure:

<txp:mta_author />

Attributes

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

link="integer"

When set to 1, returns a link to the author’s article in the author section, otherwise returns just the author’s name if set to 0. Available values: 0 or 1 (default).

display="string"

When set to realname, returns the user’s full name or returns the user’s ID if set to id. Available values: id or realname (default).

Example

<txp:mta_author link="0" display="id" />

mta_author_article

Syntax

The mta_author_article tag has the following syntactic structure:

<txp:mta_author_article />

Attributes

The mta_author_article tag is an extension of the built-in article_custom tag, so it accepts the same attributes. The only modification is to the following attribute:

author="string"

Restrict to articles by specified author, otherwise restrict to the current author search if left blank. Default is unset, so restrict to the current author search.

Example

<mta_author_article section="article" />

Change Log

v0.1 Initial release.

Article Request Count:
Initially released:
2008-10-14
Posted here:
14 Oct 2008

You know you want to visit the Archives.
Published with Textpattern