You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you like to see added to or changed in Embedded Assets, and why?
Hey! Great plug-in! We use it for pretty much every asset that we ship on our production website because it allows us to leverage our 3rd party CDN, making asset management a breeze. Including a mechanism to capture required Craft asset field values would make it way better!
Locally, we have extended your plug-in to do so, namely by including inputs on the Modal component which is rendered when a user clicks the "Embed" button --
The value from each input is then applied to the asset's field upon creation, such that required Craft fields are also required to embed an asset!
This helps to alleviate an issue where authors can easily bypass Craft CMS required fields by simply embedding an asset.
My first inclination was to re-direct users to the asset which they just created using the plug-in, but it is simple enough for them to navigate away with the back button to avoid having to enter any information.
Below, I have included a diff of the main changes --
In general things are pretty specific for our implementation, but it should be a good head start toward implementing something more general.
I could envision a section within the settings for the plugin where required asset fields are captured, such that a mapping can be generated programmatically between:
the field(s) query parameters
the input(s) on the modal
the field(s) in the database
The addition of the above, coupled with code changes to make our implementation more abstract, would be a lovely add to this plugin! Sadly, I cannot give my undivided attention to this feature, which is what I feel it would deserve.
Cheers!
The text was updated successfully, but these errors were encountered:
This is a fair point, and something I hadn't considered. It would be worth us looking at replacing the existing preview modal with a slideout element editor to achieve this.
What would you like to see added to or changed in Embedded Assets, and why?
Hey! Great plug-in! We use it for pretty much every asset that we ship on our production website because it allows us to leverage our 3rd party CDN, making asset management a breeze. Including a mechanism to capture required Craft asset field values would make it way better!
Locally, we have extended your plug-in to do so, namely by including inputs on the
Modal
component which is rendered when a user clicks the "Embed" button --The value from each input is then applied to the asset's field upon creation, such that required Craft fields are also required to embed an asset!
This helps to alleviate an issue where authors can easily bypass Craft CMS required fields by simply embedding an asset.
My first inclination was to re-direct users to the asset which they just created using the plug-in, but it is simple enough for them to navigate away with the back button to avoid having to enter any information.
Below, I have included a diff of the main changes --
In general things are pretty specific for our implementation, but it should be a good head start toward implementing something more general.
I could envision a section within the settings for the plugin where required asset fields are captured, such that a mapping can be generated programmatically between:
The addition of the above, coupled with code changes to make our implementation more abstract, would be a lovely add to this plugin! Sadly, I cannot give my undivided attention to this feature, which is what I feel it would deserve.
Cheers!
The text was updated successfully, but these errors were encountered: