Interesting. Given how it's required to specify which custom type relationships exist I can understand why this is the default but it's weird that you don't have the option to change it.
Based on @samlittlefair's comment on your post it sounds like it should be editable from within prismic slicemachine, but even on the beta branch (which I'm using currently) there's no option to allow document relations even with custom type options
I wonder what the 'correct' solution is here? Random document links won't work unless you define every document relationship in the initial query (very inefficient), so just deleting the web type here doesn't really work as a solution.
I guess a perfect solution would be for the linkable documents to be selected, which then automatically adds queries to your fetchLinks property but that's definitely not how this works now.
That is true. I understand that having both links in a Custom Type instead of covering all of the use cases isn't the most user-friendly option. But it's a workaround you can use to make internal links work.
We appreciate all of your feedback. I'll be sure to share it on the team's product board.
OK, so I talked with the team and the field in this beta version of slice-machine-ui only supports 'links to web'. The content relationship supports 'links to documents' and neither supports 'links to media'.
I have requested the team to add support for all 3 of these cases to the link field. Hopefully this will be added in the next BETA release shortly.
I will update you here once this is done.
closed , flag & select 'Something Else' to reopen.
I've been working on 0.1.0 for the last 2 weeks and I'm still not seeing this. This is the latest release as far as I can tell, but if I go up to 0.1.0-beta-9 I still don't see any option to choose what type of link I'm creating.
Even if I create a new link I still don't see this
Great! It really doesn't make sense that it works this way as it's quite restricting (users regularly want to link both internally and externally) and the rich text links already work like this (where you can select any link type).