Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-29 15:40:32

christina.helen
Member
From: California
Registered: 2009-03-20
Posts: 38

Use zem_nth plug-in properly

Hi, I am using zem_nth to display alternate colors for my comments. It is outputting the colors correctly here but displaying the following message: “Tag error: <txp:zem_nth step=2 of=2> -> Textpattern Warning: Attribute values must be quoted on line 920.” (Note: it also displays errors for Step 1 of2 )

I am not sure which attribute values it is referring to.

Here is my mark-up:

  <txp:zem_nth step=1 of=2><dd id="odd_name"><txp:comment_name /></dd></txp:zem_nth>
        <txp:zem_nth step=2 of=2><dd id="even_name"><txp:comment_name /></dd></txp:zem_nth>
        <txp:zem_nth step=1 of=2><dd id="odd_time"><txp:comment_time /></dd></txp:zem_nth>
        <txp:zem_nth step=2 of=2><dd id="even_time"><txp:comment_time /></dd></txp:zem_nth>
        <txp:zem_nth step=1 of=2><dd id="odd_comment"><txp:comment_message /></dd></txp:zem_nth>
        <txp:zem_nth step=2 of=2><dd id="event_comment"><txp:comment_message /></dd></txp:zem_nth>

Thanks for any help!

Last edited by christina.helen (2009-04-29 15:44:06)

Offline

#2 2009-04-29 16:43:34

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Use zem_nth plug-in properly

Add quotes around your tag attributes.

<txp:zem_nth step="1" of="2">

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-04-29 16:52:48

christina.helen
Member
From: California
Registered: 2009-03-20
Posts: 38

Re: Use zem_nth plug-in properly

That was it! Thanks, Matt!!

Offline

#4 2009-04-30 11:59:49

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: Use zem_nth plug-in properly

helen, you can using Andrew’s plugin ajw_comment_alt .

its pretty simple

Offline

Board footer

Powered by FluxBB