admin-page-framework
admin-page-framework copied to clipboard
Link attribute in image field type
link could take into consideration the "Link To" drop-down in Media selection: None/Media URL/Page URL/Custom
Now it always stores the page URL.
Maybe link_to or something can be added to the attributes_to_store argument for it. I'll see how it can be done.
As discussed in https://github.com/michaeluno/admin-page-framework/issues/239#issuecomment-188837464, it does not seem to be so simple to achieve.
It is very common that you need a bunch of images with links.
Maybe a new built-in field type? image_link?
I agree with doing it with a new field type. You should try creating a custom field type.