Comment name

On this page:

Syntax

<txp:comment_name />

The comment_name tag is a single tag which is used to display a link using the commenter’s name as text. If an email address is supplied and allowed to be viewed, an email link is created. Otherwise, if a website is entered, the website URL is used. If neither is supplied, the name displays as plain text.

Commenter’s name and/or email address can be set as a requirement. Should be used in Textpattern ‘comment’ type Form templates.

Attributes

This tag will accept the following attributes (case-sensitive):

link="boolean"
Make text a link to the author’s URL/email (depending on the information given).
Values: 0 (no) or 1 (yes).
Default: 0.

Examples

Example 1: Comments display form

<txp:comment_message />
<p>
    <txp:comment_name />
    <txp:comment_time />
    <txp:comment_permlink>
        <txp:comment_id />
    </txp:comment_permlink>
</p>

Other tags used: comment_id, comment_message, comment_permlink, comment_time.

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