The simpler media website CMS
Since text files have no natural height and width, we set them based on the image size option. This happens after the call PersistentObject(). The rest of the code there sets up the default title.I actually thought that the plugin would (or could?) use the my_video.jpg I have next to my my_video.txt file in the albums folder. I understand ZP generates the thumbnail from the sibling but why not get the width and height parameters and use that to style the span.textobject?
The code of the object instantiation function is mostly required. Plugin "images" follow the lead of videos in that if there is a real image file with the same name save the suffix, it will be considered the thumb image of the object. This image is fetched by the call on checkObjectsThumb(). There is also code in the getThumb() method to deal with this property.Any tips on modding that or is it maybe already implemented? Or maybe is it already implemented and do I miss something?
Comments
As you said a text object which can be any type of text has no dimension. Using it with Youtube & Co videos is a trick/workaround. The span is of course set via CSS and naturally not all theme may have something for text objects.
Youtube & Co provide an embed code with predefined sizes you manually should adjust to fit your theme layout.