Load vimeo video beneath text input for (pre)view
Posted 02 August 2012 - 09:22 AM
I know that there is a module that converts urls to embed codes and displays them in a (tinymce) field, but I’d rather separate display and input here. I appreciate any insights, and thank you in advance for reading / thinking along!
Posted 02 August 2012 - 11:39 AM
Edit: of course nothing again creating a simple fieldtype/inputfield module that would be more flexible and dedicated, but little more complex.
Posted 02 August 2012 - 12:17 PM
Posted 02 August 2012 - 12:37 PM
Posted 02 August 2012 - 01:03 PM
Posted 19 August 2012 - 02:44 PM
Posted 20 August 2012 - 07:36 AM
Or if it's a single image and output formatting on:
$page->image = "http://domain.com/path/to/file.jpg";
The first example is more likely the one you'd want. When you save, it should download the image and put it into the system.
Posted 20 August 2012 - 08:01 AM
Posted 20 August 2012 - 08:41 AM
Posted 20 August 2012 - 03:07 PM
Posted 21 August 2012 - 02:16 AM
Posted 21 August 2012 - 07:03 AM
The fieldtype should consist out of a text field entry field for the video url, another text field where the retrieved embed code is stored, and an image field where the thumbnail belonging to the fetched video will be stored, and also some optional config fields (i.e. to specify a fixed width for the video, or any other presets such as autoplay).
You might want to look at using a repeater for this, as it would enable you to do this pretty easily. Though cloning and modifying the existing images fieldtype would enable you to do all this too (with a little more work).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users