Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-09-16 11:48:36

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: [plugin] [ORPHAN] zem_nth

hm, is this plugin offline? i can’t find a download link that works. TIA, sounds great.

Offline

#14 2005-09-16 12:14:46

jason
Member
From: USA
Registered: 2004-02-23
Posts: 85
Website

Offline

#15 2005-09-16 12:25:02

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: [plugin] [ORPHAN] zem_nth

doh, thanks :)

Offline

#16 2006-04-28 22:46:42

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#17 2006-06-21 11:29:46

jufemaiz
Archived Plugin Author
From: nth narrabeen, sydney, nsw, au
Registered: 2005-03-17
Posts: 91
Website

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

#20 2007-03-18 21:35:51

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#22 2008-08-29 12:07:27

nathansmart
New Member
From: Columbus, OH
Registered: 2008-08-29
Posts: 4
Website

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

#24 2009-09-02 11:09:46

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_nth

Maybe have a look at either this TXP Tips or this one

Last edited by jstubbs (2009-09-02 11:10:01)

Offline

Board footer

Powered by FluxBB