Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Radiant extension that supplies tags to display odd and even child pages
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
README.md
Rakefile
modulo_extension.rb

README.md

Modulo

Modulo is a Radiant extension that adds tags for conditional rendering of child pages based on their ordinal values. For example, it can render different markup for odd or even children:

<r:children:each>
  <r:if_odd>
    <div class="left">
  </r:if_odd>
  <r:if_even>
    <div class="right">
  </r:if_even>
      <r:content part="body" />
    </div>
</r:children:each>

New tags in Modulo

Modulo introduces the following new Radius tags:

  • <r:if_even>
  • <r:unless_even>
  • <r:if_odd>
  • <r:unless_odd>
Something went wrong with that request. Please try again.