Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
duncanmcclean opened this issue Jun 17, 2024 · 1 comment
Open

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

duncanmcclean opened this issue Jun 17, 2024 · 1 comment

Comments

@duncanmcclean
Copy link
Member

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.
@daun
Copy link

daun commented Aug 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants