Closed (fixed)
Project:
Views PHP Filter
Version:
6.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2009 at 02:58 UTC
Updated:
2 Dec 2009 at 17:53 UTC
Can this module help in filtering nodes who's content contains image tags?
Could I grab the body of the node and then php regex to check if it contains an image tag in the html and then filter on it (return true or false).
I want to create a view on already generated content..however, only the nodes where the body contains certain html tags.
Thank you.
Comments
Comment #1
gnassar commentedI don't see why not. It'd be a SQL query for nodes where current node_revision content has an img tag in it, then regexping the results and returning that node set. Sounds like everything there can be done with PHP.
As for *how* to do that in PHP -- that's not a support question with the module per se. Perhaps the forums can help you with that? Or perhaps a PHP-specific site or forum.