I need to show how much rows in the entry have "ON" state. I could not find any tag in documentary.


If you're looping channel entries you could add a second loop to grab the "On" entries...

{!-- first loop to display entries --}
{exp:channel:entries channel="mychannel"}

{!-- second loop to grab 'on' entries --}
{exp:channel:entries channel="mychannel" search:your_switch_field="ON"}
  {if count == total_results}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.