adding/editing the video and store it in the post table somehow. This
way when you paginate or view your posts which is the thing you do
most, your not having to call any extra requests or carry out any
extra logic.
I am doing this with phpThumb on all of my site's articles/blogs/
events etc. by checking the posts body (controlled by TinyMCE) using
an afterSave callback for any image tags and then creating the various
thumbnails I need throughout my site for the index pages and wherever
I show featured posts.
However if you're showing the same video.png for any post with a video
then you simply need to set a boolean flag in your posts table.
HTH
Paul
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment