These are great.<div>I'm looking at solution 1 because I'd like to (initially) apply somehting say through a wiki style,</div><div>but would be be correct in thinking it is not possible to supply a selector in a wikistyle?</div>
<div><br></div><div>thanks very much</div><div><br></div><div>Simon</div><div><br><br><div class="gmail_quote">On 10 June 2010 21:32, Eemeli Aro <span dir="ltr"><<a href="mailto:eemeli@gmail.com">eemeli@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 10 June 2010 12:06, Simon <<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>> wrote:<br>
> Of course there is not an "even" (or an "odd") conditional markup condition.<br>
> Has anyone some suggestions on how I could achieve this?<br>
<br>
</div>1. Use CSS3 rules such as li:n-th-child(even) and/or<br>
li:n-th-child(odd) [1]. Unfortunately, these don't work in IE [2].<br>
<br>
2. Add the markup expression {(math)} [3], and then use the<br>
conditional (:if equal 1 {(math {$$PageCount} % 2)}:)<br>
<br>
3. Add a custom conditional:<br>
  $Conditions['odd'] = 'intval($condparm) % 2';<br>
and then use it: (:if odd {$$PageCount}:)<br>
<div class="im"><br>
> PS what do you think about have an extension to pagelist for conditions, eg<br>
> (:template if <markup expression> :)<br>
<br>
</div>Is there a use case where the same result can't be achieved with<br>
already existing markup?<br>
<br>
eemeli<br>
<br>
[1] <a href="http://www.w3.org/TR/css3-selectors/#nth-child-pseudo" target="_blank">http://www.w3.org/TR/css3-selectors/#nth-child-pseudo</a><br>
[2] <a href="http://www.quirksmode.org/css/contents.html" target="_blank">http://www.quirksmode.org/css/contents.html</a><br>
[3] <a href="http://pmwiki.org/wiki/Cookbook/MarkupExpressionSamples#math" target="_blank">http://pmwiki.org/wiki/Cookbook/MarkupExpressionSamples#math</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>