You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This addon works by finding the text between [ and ] braces, and then finding an entry with exactly that title. But the title has to be exactly right.
It would be very helpful for editors/writers/marketers if the addon also provided an autocomplete/autosuggest functionality in the editor, so when someone types a brace [ and starts typing characters, the addon begins suggesting the most likely entries to match. The user can then suggest the right one and the title is entered perfectly.
Likely that this would require Livewire as well as Alpine.
As discussed, this is just an idea for improving this addon. You may feel the addon is best kept simple rather than extended.
I'm a newbie, gradually learning Statamic, and am a writer with only enough coding skill to be dangerous, but would be happy to jump in and help or make what progress I can.
The text was updated successfully, but these errors were encountered:
I wouldn’t be Livewire because we don’t use Livewire. Would need to be Vue.js and/or tiptap/prosemirror stuff. To be fair, this addon was just a proof of concept — a full wiki solution would need a lot more than a modifier :) On Jun 27, 2024, at 2:43 PM, Steve Parks ***@***.***> wrote:
This addon works by finding the text between [ and ] braces, and then finding an entry with exactly that title. But the title has to be exactly right.
It would be very helpful for editors/writers/marketers if the addon also provided an autocomplete/autosuggest functionality in the editor, so when someone types a brace [ and starts typing characters, the addon begins suggesting the most likely entries to match. The user can then suggest the right one and the title is entered perfectly.
Likely that this would require Livewire as well as Alpine.
Possible inspirations:
Ghost have recently added similar functionality: https://ghost.org/changelog/internal-linking/
The Statamic live search addon: https://github.com/jonassiewertsen/statamic-live-search
The Livewire autocomplete component https://github.com/joshhanley/livewire-autocomplete
Blog on building a typeahead component with Alpine and Livewire: https://chrisdicarlo.ca/blog/-alpinejs-and-livewire-autocomplete/
As discussed, this is just an idea for improving this addon. You may feel the addon is best kept simple rather than extended.
I'm a newbie, gradually learning Statamic, and am a writer with only enough coding skill to be dangerous, but would be happy to jump in and help or make what progress I can.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
This addon works by finding the text between [ and ] braces, and then finding an entry with exactly that title. But the title has to be exactly right.
It would be very helpful for editors/writers/marketers if the addon also provided an autocomplete/autosuggest functionality in the editor, so when someone types a brace [ and starts typing characters, the addon begins suggesting the most likely entries to match. The user can then suggest the right one and the title is entered perfectly.
Likely that this would require Livewire as well as Alpine.
Possible inspirations:
As discussed, this is just an idea for improving this addon. You may feel the addon is best kept simple rather than extended.
I'm a newbie, gradually learning Statamic, and am a writer with only enough coding skill to be dangerous, but would be happy to jump in and help or make what progress I can.
The text was updated successfully, but these errors were encountered: