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

best way to link to a different URL? #98

Closed
NicoledeGreef opened this issue Jan 21, 2021 · 2 comments
Closed

best way to link to a different URL? #98

NicoledeGreef opened this issue Jan 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@NicoledeGreef
Copy link
Contributor

NicoledeGreef commented Jan 21, 2021

In a the French DMF sites we're replacing, a regular href was used to allow user to move between the French and English version of the site. Wondering if perhaps we can implement a (bespoke?) button widget that allows for user to pick a material icon or supply a custom file and hyperlink it to another site. Open to other ideas to achieve this link, too.

@NicoledeGreef NicoledeGreef added the enhancement New feature or request label Jan 21, 2021
@qqnluaq
Copy link
Contributor

qqnluaq commented Jan 27, 2021

This is already possible, using a bit of javascript.
Basic idea is to create a bespoke tool, then add a handler to the tool for the trigger event. That handler would change the document location.
This pattern could be formarlized by having smk edit create the skeleton in the code.

@NicoledeGreef
Copy link
Contributor Author

Sounds like a good learning opportunity for us on the Bespoke feature. Thanks @qqnluaq!

@qqnluaq qqnluaq closed this as completed Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants