Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-15 13:17:50

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

djw_section_articles AND zem_nth weirdness

Hi,

I am using this code here:

<txp:if_individual_article>
<txp:article form="mrs_side_active" limit="1" listform="mrs_side_active" />
<txp:djw_section_articles name="article" c="featured"  sortdir="desc" sortby="Posted" wraptag="" break="li" label="" labeltag="" current="0" 
  class="<txp:zem_nth step=1 of=2>odd</txp:zem_nth>" />
</txp:if_individual_article>

inside a page template to give alternate style classes for every second steps.
Now, I made a small quick and dirty hack on djw_section_articles so it doesn’t label the list with a header, which the plugin natively does not support.This is not so elegant and will give some error notices in debugging mode.
(Basically by commenting out some stuff and setting the label variable to NULL.)
That’s not my problem though, but I can’t for sake figure out, why zem nth won’t output anything.
It used to work yesterday fine and today it doesn’t.

What could be the reason ?

(Edit: updated your code so it would display properly. :) -Mary)

Last edited by Mary (2006-04-15 20:01:06)


⌃ ⇧ < ⌃ ⇧ >

Offline

#2 2006-04-16 13:34:49

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: djw_section_articles AND zem_nth weirdness

weirdness resolved, it was actually easier than I thought.


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB