I need to add a second section name to this code:

craft.entries.section('not homePage')

I can't figure out the correct formatting. I've tried:

craft.entries.section('not homePage,clientPage')
craft.entries.section('not homePage, not clientPage')

How do I add a second limiter?


A second limiter is added to the conditional like this:

craft.entries.section('and, not homepage, not clientPage')
  • We already had a similar question this morning. Do you know how to combine more complex conditionals? – carlcs Jun 12 '14 at 17:09
  • 1
    I'm learning. There isn't good documentation on this topic IMO. – Anna_MediaGirl Jun 12 '14 at 17:26

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.