ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
Limit number of modules published in a given position?
Posted 15 years 11 months ago
I need to limit the number of modules that can be published in a given position. I know there is a countModules() function but I need to stop processing after the second module so that no more than 2 modules ever appear in module position x.
can anyone point me in the right direction? Thanks!