Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] zem_nth
hm, is this plugin offline? i can’t find a download link that works. TIA, sounds great.
Offline
Re: [plugin] [ORPHAN] zem_nth
Offline
Re: [plugin] [ORPHAN] zem_nth
doh, thanks :)
Offline
Re: [plugin] [ORPHAN] zem_nth
hi,
i’m trying this inside a form (that is called by the jmc_event_manager plug-in):
<code>
<txp:zem_nth step=1 of=2><tr class=“even”></txp:zem_nth>
<txp:zem_nth step=2 of=2><tr class=“odd”></txp:zem_nth>
</code>
But it’s not working for me.
All the <tr>
in the table get the “even” class.
Does this plug-in only work for forms called by txp:article?
Any hint, tip or trick will be apreciated.
thanks.
Offline
Re: [plugin] [ORPHAN] zem_nth
maniqui – of interest would be the fact that there’s an even/odd option implemented in jmc_event_manager
<pre>< txp:jmc_even_odd / ></pre>
outputs even/odd depending on whether the row # is even/odd
BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside
Offline
#18 2007-03-17 23:55:05
- tonyM
- Member
- Registered: 2006-03-06
- Posts: 21
Re: [plugin] [ORPHAN] zem_nth
Hello,
I have to say that this plugin is very interessant and i thank you Zem for your work.
But i have a problem.
I’m trying to use this plugin in an “list-article” form because i would like to alternate the background-color of each article (1 of 2).
Here is my form:
<div class=“liste”>
<txp:zem_nth step=1 of=2><div class=“red” /></txp:zem_nth>
<txp:zem_nth step=2 of=2><div class=“blue” /></txp:zem_nth>
<h2 class=“titre”>
<txp:permlink><txp:title /></txp:permlink>
</h2>
<txp:posted />
<txp:excerpt />
<p class=“read_more”><txp:permlink>Lire la suite…</txp:permlink></p>
</div>
….etc….
All is perfekt when i use the default layout of textpattern but when i use the plugin and the form in a floated column (i tried layouts with 2 or 3 columns), it don’t work. I mean that the sidebar goes under the content everytime. I don’t succeed to find the reason of the problem. Does someone have an idea?
Thank you. Bye…
Last edited by tonyM (2007-03-18 00:23:15)
Offline
#19 2007-03-18 20:42:26
- tonyM
- Member
- Registered: 2006-03-06
- Posts: 21
Re: [plugin] [ORPHAN] zem_nth
Nobody knows the problem?
Offline
Re: [plugin] [ORPHAN] zem_nth
Isn’t it a CSS problem? I don’t know how the plug-in can be related to the problem.
Offline
#21 2007-03-19 14:39:24
- tonyM
- Member
- Registered: 2006-03-06
- Posts: 21
Re: [plugin] [ORPHAN] zem_nth
I found the solution. It was just a bad use of the tag. Here is the thread where all is explained. (in french, sorry…)
Offline
Re: [plugin] [ORPHAN] zem_nth
EDIT: wrong post…
Last edited by nathansmart (2008-08-29 12:07:48)
http://www.nathansmart.com
Offline
#23 2009-09-02 11:05:09
- fbox
- Member
- From: Melbourne
- Registered: 2006-02-18
- Posts: 42
Re: [plugin] [ORPHAN] zem_nth
Hi all,
Having an issue when zem_nth is used with odd numbers of articles. Some of my pages have even numbers of articles in the txp:article_list, others don’t. Obviously I need some logic that handles both situations.
The problem is that if the LAST article is ODD, zem_nth isn’t able to output a closing div tag, and my layout breaks.
Here is the article list form I’m using:
<txp:if_first_article>
<div class="img-box"><!-- start img-box -->
</txp:if_first_article>
<txp:zem_nth step="1" of="2">
<div class="holder"><!-- start holder -->
<div><!-- start left box -->
</txp:zem_nth>
<txp:zem_nth step="2" of="2">
<div class="right"><!-- start right box -->
</txp:zem_nth>
<!-- FINISHED OPENING TAGS -->
<!-- OUTPUT ARTICLE CONTENT HERE -->
<!-- START CLOSING TAGS -->
<txp:zem_nth step="1" of="2">
</div><!-- end leftbox -->
</txp:zem_nth>
<txp:zem_nth step="2" of="2">
</div><!-- end rightbox -->
</div><!-- end holder -->
</txp:zem_nth>
<txp:if_last_article>
<!-- if LAST article is ODD, output an extra closing div here, else just run the following -->
</div><!-- end imagebox -->
</txp:if_last_article>
Does anyone have any suggestions? I don’t have much hair left!
Cheers,
– L.Offline
Re: [plugin] [ORPHAN] zem_nth
Offline