Frank Vèssia Posted November 6, 2012 Share Posted November 6, 2012 It's possible to find comments of different fields and have one mixed result? FieldtypeComments::findComments('commentfield', $selector); Whit this code I can only insert one comment field, i tried with the pipe with no luck, like field1|field2 Link to comment Share on other sites More sharing options...
ryan Posted November 6, 2012 Share Posted November 6, 2012 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 More sharing options...
Frank Vèssia Posted November 6, 2012 Author Share Posted November 6, 2012 Great, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now