Question

I created a plugin for IP 3.9 to upload videos to encoding.com and convert them to mp4 so users would not have to worry about the format of the videos to use in their html5 sites.

In the previous version of ImpressPages I used the element_file of the ItemsArea class to upload the original videos to a temp folder, once the video was encoded I would put it in the Repository so it is available to the users for embedding using a widget.

In the new Impress Pages 4 Grid class the element_file was replaced for the RepostoryFile field and it directly uploads the file to the main Repository (does not let you choose the destination), which makes the non-encoded video to be available to the user.

Is there a way to override this behaviour without modifying the core files?

or is there a way to tell the repository not to show this files until they are encoded (like a visibility flag)?

or can I create a custom field type from a plugin?

Was it helpful?

Solution

You can create custom field type for your plugin. Just use Full class name including namespace in Grid configuration.

File input which save files to tmp folder would be useful for others. So you can contribute it to the core too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top