By Tim99 on
Does anyone know if I can mark a post if there is a youtube video is included? In my view I only see the first sentences and sometimes there is interesting content like a video or else.
Does anyone know if I can mark a post if there is a youtube video is included? In my view I only see the first sentences and sometimes there is interesting content like a video or else.
Comments
I use TinyMCE and a
I use TinyMCE and a youtube-plugin to get the video code into the node. It looks something like that:
Currently I look for a certain string in the content:
But unfortunately this only works when the full node is displayed. Not in the teaser view (if the video is outside the teaser). Any ideas how to overcome that drawback? What should I scan instead of the
$objectvariable?I already tried:
1-3 doesn't show anything. 4 only works as described above. When I use
dprint_r($node)in the teaser view, there is nothing about the included video unfortunately. Any ideas?