ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How can I display content after every "X" amount of entries?

September 04, 2012 11:08pm

Subscribe [2]
  • #1 / Sep 04, 2012 11:08pm

    Danny T.

    426 posts

    I can’t seem to figure out how to do this, but have a feeling it’s to do with the {count} variable in a conditional..

    Could somebody lead me along the right path?

    I want to display a graphic after every 2 entries.

  • #2 / Sep 04, 2012 11:56pm

    Bransin

    157 posts

    Mx calc is a great plugin. http://www.eec.ms/add-ons/mx-calculator

    Here is a thread elsewhere where someone needed to accomplish this every 8th entry.
    http://www.eec.ms/forums/viewthread/591/

  • #3 / Sep 06, 2012 11:54am

    Lisa Wess

    20502 posts

    You can also check out the  {switch} variable.  If you wanted something every two entries it would look like:

    {switch="|stuff"}

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases