Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-08-30 16:03:01

milosevic
Member
From: Madrid, Spain
Registered: 2005-09-19
Posts: 390

Re: Group article two by two

I will use a simple article custom and for take control of the presentation a variable and adi_calc


<txp:rocks/>

Offline

#14 2012-08-30 18:19:19

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Group article two by two

milosevic wrote:

I will use a simple article custom and for take control of the presentation a variable and adi_calc

I’ve made some testing, with 10 articles:

  • Bare article_custom (without grouping): ~0.014s
  • Gocom offset solution: ~0.019s
  • Uli/wet zebra: ~0.02s, roughly equivalent to what you suggest.
  • etc_query solution: ~0.017s

Conclusion: they all take the same time, but etc_query has much shorter code.

Offline

#15 2019-04-15 13:14:27

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Group article two by two

In 4.7 the formal OP problem can be solved via breakby attribute:

<txp:article breakby="2" break="div" breakclass="group">
    <article id="<txp:article_id />" />
</txp:article>

Offline

Board footer

Powered by FluxBB