txp:author

The author tag is a Single Tag which is used to return the name of the author of the currently displayed article. Its context is an article form.

Syntax

The author tag has the following syntactic structure…

<txp:author />

Attributes

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

link="boolean"

Make text a link to author's posts. Available values: 0 (no) or 1 (yes). Default is 0 (no).

section="section_name"

Only link to articles from the named section. Default is unset.

this_section="boolean"

Only link to articles from the same section as the current article's. Available values: 1 (yes) or 0 (no). Default is 0 (no).

Examples

As a linked element in an article Form

An article form can be created any way you want it by using a combination of article-related Tags. Following is just one possibility:

<h1><txp:title /></h1>
 
<p class="author-date">Posted By: <txp:author link="1" /> @ <txp:posted /></p>

Tags used: <posted />, <title />

Genealogy

Version 4.0.4

  • section, this_section added.
txp/author.txt · Last modified: 2008/02/05 14:53 by hcgtv

Home Page | User Forums | Driven by DokuWiki
Copyright © 2008 xPattern