Hi there,
I’m slowly moving a website from Textpattern to Modx. I’m using Newslisting 6.3.3 on 0.9.2.1. One of the questions I have, is it possible assign alternating chunks to the Newlisting output?
I would like to have the following HTML output:
<div class="left">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 1</a></h2>
<p class="author">Category 1 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>
<div class="right">
<h2><a href="SomePermalink" title="Permanent link to this article">Article 2</a></h2>
<p class="author">Category 2 | Author | Date</p>
<p>Some summary. <a href="#" title="Permanent link to this article">More</a></p>
</div>
<br style="clear: both;" />
This would alternate down a page - so that Article 1 is the left of a page, Article 2 is on the right of the page, followed by <br style="clear: both;" />. Then on the next line Article 3 would be on the left, Article 4 on the right, followed by <br style="clear: both;" />. So on and so on until it reaches the designated number of posts for that page.
With Textpattern it is really quite simple, just write something like:
<txp:article_custom offset="0" limit="2" listform="excerptlist" />
<br style="clear:both;" />
<txp:article_custom offset="2" limit="2" listform="excerptlist" />
<br style="clear:both;" />
Is there some way of doing this in ModX and Newslisting?
Cheers
Mark