-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Link as custom field type #308
Labels
Feature Request
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
A link type as a custom field. For example, I've added an ASIN field for filaments so I can find the exact spool on Amazon if I want to order more. A direct link could then be easily constructed from this as "https://www.amazon.com/dp/[ASINnumber]", and you could then use that link to go straight to the Amazon listing for the filament. I'm sure many other marketplaces also support constructing direct links from a base URL and their article numbers.
In the custom field creator you could enter a base URL value and in the UI when you edit the value for the custom field you would enter, in this case, the ASIN number. So...
In the settings page when you edit the custom field:
![image](https://private-user-images.githubusercontent.com/62719293/303640051-48d23e20-93c3-4083-8ebd-fbf9fa1551c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTEzNTUsIm5iZiI6MTcxODk1MTA1NSwicGF0aCI6Ii82MjcxOTI5My8zMDM2NDAwNTEtNDhkMjNlMjAtOTNjMy00MDgzLThlYmQtZmJmOWZhMTU1MWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA2MjQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1NjI5MjU3OGU0YzBiMjAwYjk0YjdiMjcxYjNhYzM4NzAwNGI3MTAzOWJhOTM5OWVlNDM1ZjIzODM0Y2I3NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._3tsFWJYvD6uhI1dEL2AW7WzVGR0dOJOB8Ll83hiMYo)
([AN] stands for article number, but having something more generic might be better, not sure what placeholder should be used)
In the filament create/edit page:
![image](https://private-user-images.githubusercontent.com/62719293/303638880-31aba09a-34d6-46e3-8d72-b310ca2ad5f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTEzNTUsIm5iZiI6MTcxODk1MTA1NSwicGF0aCI6Ii82MjcxOTI5My8zMDM2Mzg4ODAtMzFhYmEwOWEtMzRkNi00NmUzLThkNzItYjMxMGNhMmFkNWY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA2MjQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0YTRjMzA4NmIxYjE2YWIxY2UzN2MzYWFjOGM1ZjQ5YzFiNjRiYjcwOTBkYWYyMGE3ZGQ1MGU0NDZjY2EyYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Bn_UgwcKtwlkotRBfJzY8iZ7U4utVzY2bW91nZjPvuo)
Behind the scenes, the base URL and the article number would then be parsed and the [AN] part of the URL replaced by the actual article number, producing:
![image](https://private-user-images.githubusercontent.com/62719293/303640375-a786f422-eb42-432f-a686-c8b3ad4fbe88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NTEzNTUsIm5iZiI6MTcxODk1MTA1NSwicGF0aCI6Ii82MjcxOTI5My8zMDM2NDAzNzUtYTc4NmY0MjItZWI0Mi00MzJmLWE2ODYtYzhiM2FkNGZiZTg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA2MjQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiYTdiZmQ5ODQyNDYxMTJhMzA1NDZmM2Q4OTFmZGEwMzRkZGNiNGZkZjgzYjQ5ZmI1NDY0YWRlOTI3M2JhNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HMm04t_l5NFTkVd7WLPPQxES_NB7VtruXO5wa4VrGeg)
If you wanted to get really fancy, regex might also be implemented for URLs with more complex parsing. Might also be useful to have the link parser be able to pull in dara from other fields by their key, like in my Amazon example, as I already have a field with the ASIN number and the key "asin" I could add a Link field with the base URL "https://www.amazon.com/dp/[asin]" to pull in the value of the custom field with the key "asin"
Describe alternatives you've considered
What I'm doing now, which is to simply have the ASIN as a regular text field, then copy that into the search box on Amazon. Works, but could be more streamlined.
Additional context
I'm sure people could find many more creative uses for this feature than just this one thing.
The text was updated successfully, but these errors were encountered: