Allow VisualEditorUrls to match a pattern #25364
WaschBaer0395
started this conversation in
Feature Requests
Replies: 1 comment
|
used a little trick to get this functionality working this way it checks if the site is loaded in an iframe from the directus backend, and appends ?visualediting=true&token=TOKEN everytime you navigate on the page now it will update the url to always have those parameters appended.. means you dont need to specify visualEditor URLS anymore |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
It would be nice if the VIsualEditor could match a whole set of urls automatically
Basic Example
No response
Motivation
lets say we have a page /events and it contains several events /events/1 events/2 where event/number is the detailpage
the amount of events can change depending on how many events are currently in the collection set to published
i would like the VisualEditor to know that it should work on all of those ( right now it does work when manually navigating there, but when i klick save it refreshes and then is not in edit mode anymore cause the url list dosent contain this speicfic route)
Detailed Design
allow us to write this in the url list: ...website.com/events/[id]... where [id] is linked to the collection containing all events, so it knows that the editor should work with lets say the 100 events in that collection
or a general setting to allow all routes of aspecific type /events/... /events/ events/partyevents/
or allow using wildcard chars /events/*
Requirements List
Must Have:
Drawbacks
i dont see any downside in my eyes ?
Alternatives
impossible for us right now to allow editing for the above described usecase
Adoption Strategy
there wouldnt be any changes, other than that you can now also use wildcards, patterns or directly use [slug] [id] linked to a collection to tell the editor a whole range of editor urls that it can work with
Unresolved Questions
No response
All reactions