admin-page-framework icon indicating copy to clipboard operation
admin-page-framework copied to clipboard

Link attribute in image field type

Open szepeviktor opened this issue 9 years ago • 5 comments

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.

szepeviktor avatar Feb 19 '16 17:02 szepeviktor

Maybe link_to or something can be added to the attributes_to_store argument for it. I'll see how it can be done.

michaeluno avatar Feb 20 '16 02:02 michaeluno

As discussed in https://github.com/michaeluno/admin-page-framework/issues/239#issuecomment-188837464, it does not seem to be so simple to achieve.

michaeluno avatar Feb 28 '16 07:02 michaeluno

It is very common that you need a bunch of images with links.

szepeviktor avatar Mar 23 '16 15:03 szepeviktor

Maybe a new built-in field type? image_link?

szepeviktor avatar Mar 23 '16 15:03 szepeviktor

I agree with doing it with a new field type. You should try creating a custom field type.

michaeluno avatar Mar 27 '16 06:03 michaeluno