This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hey,
I'm new to October and I am a bit confused about the usage of media manager in plugins. The builder plugin is quite amazing and I'm loving the ability to scaffold some quick custom functionality. However I'm not sure how much I should relay on this and how much I should instead build myself. Managing media is what I'm concerned in this post.
My problem is as follows:
It seems that there is no possibility to store any kind of meta information with the image when uploading it with media manager. For example I would like to store author or a reference link together with the image and use it later on the website. The media manager is just a widget on a custom Builder plugin.
When using media manager field I can only store a path to file. Using the file upload widget enables me to store some attributes together with the file.
The problem with latter is that there's no re-usage option for the uploaded media and when editing content I must always have the images accessible to upload(e.g i want to switch between couple of image options before making my decision).
Adding these fields to the post is also an option, but looks somewhat ugly from a database standpoint.
At this point the CMS is beginning to look more of a burden than a help compared to just drafting it all in plain Laravel.
So, is there any way to have media manager with editable image attributes or make the file upload widget use files from media library?
Managed to get a somewhat satisfied result using a separate table for images and a relation partial. On the relation form I'm using a media manager field to inject a path.
Is the perhaps a way to include relation fields to the main form of the model without the create|delete buttons for relation (if it has only hasOne relation)?
1-2 of 2