ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Ability to add additional "link types" to the Link Fieldtype

Open duncanmcclean opened this issue 1 year ago • 1 comments

Currently, the built-in Link Fieldtype only allows you to link to the following "things":

  • URLs
  • First Childs
  • Entries
  • Assets

However, there's a few situations where developers might want to add their own "link types" to the dropdown in the Link Fieldtype...

  • Runway
    • In the context of Runway, it would be nice if you could select models between various models. (often people treat Eloquent Models like entries, so this is a fairly common request).
  • Custom Asset Browsers
    • If you're integrating with a custom asset browser instead of using Statamic's native asset browser, you may wish to continue linking to assets via the Link Fieldtype.

duncanmcclean avatar Jun 17 '24 20:06 duncanmcclean

This would also be great for picking from a defined list of multi-language routes that change fairly often, where it's cumbersome for editors to keep them updated across the site.

daun avatar Aug 07 '24 10:08 daun