michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

Link attribute in image field type #244

Open szepeviktor opened 8 years ago

szepeviktor commented 8 years ago

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.

michaeluno commented 8 years ago

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 commented 8 years ago

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

szepeviktor commented 8 years ago

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

szepeviktor commented 8 years ago

Maybe a new built-in field type? image_link?

michaeluno commented 8 years ago

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