On this page:


<txp:body />

The body tag is a single tag which is used to return the text, or content, of the article being displayed (the article itself). The tag can be used in Textpattern ‘article’ type Form templates, or within Page templates, either wrapped within a given article tag, or directly in the template itself so long as the context is with a single article (as opposed to an article list).


This tag has no attributes.


Example 1: Display the article text

    <txp:title />
    <txp:author /> at <txp:posted />
<txp:body />

When used as part of your article form, this displays the article title, author and posted date, then the body text beneath that.

Other tags used: author, posted, title.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.