I am creating a more robust find and replace plugin which shows what is being replaced and where. I need to query for all entries(or content records?) where content is like '%findme%'.
Should I query for entries or should I query for content records for this find and replace?
I saw that there is an
EntryRecord, so I can give it CDBCriteria object to find but there is no
ContentRecord so how do I get the content with the string in it?
This is all I have so far.
$criteria = craft()->elements->getCriteria(ElementType::Entry); $criteria->limit = $model->limit; $relaventContent = ContentService::model()->findAll($criteria);