We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Plugin: Modulo Operator

Development and Programming

vladyn's avatar
vladyn
176 posts
16 years ago
vladyn's avatar vladyn

with modulo plugin I’m using this

{exp:weblog:entries weblog="clients_logos" disable="categories|category_fields|member_data|pagination|trackbacks" show_future_entries="yes" show_expired="yes"}
        <dl class="client-entry">
          <a href="http://{if">{client_logo}</a>
        </dl>
            {if '{exp:modulo dividend="{count}" divisor="3"}' == '0'}
                <div class="clear"></div>
            {/if}    
    {/exp:weblog:entries}

and it outputs div clear after every entry from my weblog any ideas?

       
MarkerMaker's avatar
MarkerMaker
220 posts
16 years ago
MarkerMaker's avatar MarkerMaker

viadyn,

I could not get the modulo plugin to work for me either but the ‘switch’ parameter solution works fine for me using the single quotes as suggested above. Can you not get this solution to work?

       
streetalchemist's avatar
streetalchemist
2 posts
15 years ago
streetalchemist's avatar streetalchemist

Modulo 2.0!

Hey all, was working on my first EE2.0 site and needed the Modulo operator, so I went ahead and updated the plugin to be 2.0 compatible. Thanks for all the great work to the whole community! And thanks especially to David for creating the 1.0 version.

       
Todd D.'s avatar
Todd D.
460 posts
15 years ago
Todd D.'s avatar Todd D.
And thanks especially to David for creating the 1.0 version.

Hi Alex. Out of curiosity, did David officially endorse this as the 2.0 version?

       
streetalchemist's avatar
streetalchemist
2 posts
15 years ago
streetalchemist's avatar streetalchemist

Hi Todd, sorry no David did not officially endorse this which I should have made mention of. I simply called it 2.0 as that seems to be the standard for quite a few add-ons, more of a “Modulo FOR 2.0”. I did email him to let him know and so that if he wanted to officially package the version for EE1 and EE2 together he could. Sorry for any confusion guys, been using EE for a while, but new to working on add-ons!

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.