txp:comments_invite

The comments_invite tag is a Single Tag. Textpattern will replace this tag with a link to an article comment form. Text used for the link will be the taken from the invitation field on the “write” screen. Used in an article form.

Syntax

The comments_invite tag has the following syntactic structure…

<txp:comments_invite />

Attributes

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

showcount="boolean"

Whether to display comment count. Available values: 1 (yes), 0 (no). Default is 1 (yes).

textonly="boolean"

Whether to display invite as text, rather than a hyperlink. Available values: 1 (yes), 0 (no). Default is 0 (no).

showalways="boolean"

Whether to display invite on individual article page. Available values: 1 (yes), 0 (no). Default is 0 (no).

class="class name"

(X)HTML class attribute to be applied to wraptag. Default is comments_invite.

wraptag="tag"

(X)HTML tag (without brackets) to wrap around invite text. Default is unset.

Examples

Display comments invitation and comment count if any comments are associated with the current article.

<txp:if_comments><p><txp:comments_invite /></p></txp:if_comments>

Other tags: <if_comments>

txp/comments_invite.txt · Last modified: 2008/02/02 07:10 by hcgtv

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