Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

ajw_comment_alt

Requires 1.0RC3 (rev 180+)

Alternates output based on even- or odd-numbered comments. Intended usage is from within default comment form.

Attributes

  • even (optional)
  • odd (optional)

Examples

Ideally, this is meant to be used in your default comment form. While it is possible to use this plugin with the default <ol> formatting of comments, you’ll be able to do much more fun things if you switch off numbered list formatting in admin->preferences.

Ex. 1

&lt;div class="&lt;txp:ajw_comment_alt /&gt;"&gt;
   ...other comment form stuff...
&lt;/div&gt;

Result:

&lt;div class="odd"&gt;
   ...other comment form stuff...
&lt;/div&gt;
&lt;div class="even"&gt;
   ...other comment form stuff...
&lt;/div&gt;

Ex. 2

&lt;div class="&lt;txp:ajw_comment_alt even="foo" odd="bar" /&gt;"&gt;
   ...other comment form stuff...
&lt;/div&gt;

Result:

&lt;div class="foo"&gt;
   ...other comment form stuff...
&lt;/div&gt;
&lt;div class="bar"&gt;
   ...other comment form stuff...
&lt;/div&gt;

Article Request Count:
Initially released:
09 Mar 2005
Posted here:
30 Mar 2005
Article modified:
06 Jan 2007

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (2)

<a href=“http://code.knopok.net/alt-codes.html”>Alt codes</a>

http://code.knopok.net/alt-codes.html

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern