sanity icon indicating copy to clipboard operation
sanity copied to clipboard

Enable setting a default configuration for split pane views

Open mmgj opened this issue 5 years ago • 6 comments

When configuring a split pane view in structure builder it would be nice to be able to configure a specific combo of views as the default for a given document type. I.e. A document of type "blogPost" would always initially show the editor in the first pane and a web preview in the second.

mmgj avatar Dec 16 '19 12:12 mmgj

Is there a recommended way to show/view two or panes by default when opening the document? Thanks.

johnnypea avatar Nov 14 '20 23:11 johnnypea

If anyone happens to be stumbling upon this now, you can get default views by implementing getDefaultDocumentNode. This API isn't perfect so we'll leave this issue open for a future update 😄

ricokahler avatar Nov 02 '21 18:11 ricokahler

@ricokahler, how would one us getDefaultDocumentNode for that? Meaning to be able to open a document in split view by default?

lauri865 avatar Dec 28 '21 12:12 lauri865

I also feel this need, or maybe a way to make the split view pane open a different view from the one that was open to avoid having to click twice (once to open the split pane and again to change this view to the web preview).

fvieira avatar Feb 18 '22 00:02 fvieira

Yes, I'm also trying to do this as well -- would be a nice UX enhancement if this was possible in some way.

miked-known avatar Mar 21 '22 05:03 miked-known

Just leaving my +1 :)

miklschmidt avatar Sep 08 '22 14:09 miklschmidt

Another +1

AbeCole avatar Oct 20 '22 14:10 AbeCole

Has there been any mention of this in v3?

kindrift-vt avatar May 06 '23 21:05 kindrift-vt

This is something we also have a big need for in our projects. Has anyone been able to achieve this?

marcusforsberg avatar Jul 10 '23 12:07 marcusforsberg

+1

dbateman avatar Aug 29 '23 23:08 dbateman

+1

Lkleven avatar Sep 15 '23 11:09 Lkleven