Jump to content

Find multiple comments


Frank Vèssia
 Share

Recommended Posts

Like you found, that function only operates on one comments field. But you can search multiple comments field using the PW 2.3 dev branch with this syntax, where a, b, c are the names of different comments fields:

$pages->find("a|b|c%=some text"); 

This isn't supported in the current 2.2.9 stable branch. But you could always take the wire/modules/FieldtypeComments/* files from the 2.3 dev branch, to avoid moving the whole system to it yet.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...