umco / umbraco-stacked-content

Stacked Content for Umbraco 7
https://our.umbraco.org/projects/backoffice-extensions/stacked-content
MIT License
17 stars 26 forks source link

Discussion/Feature Idea - Toggle Preview controlled by editors #54

Open NikRimington opened 5 years ago

NikRimington commented 5 years ago

Stacked content now has the ability for preview to be enabled/disabled in the configuration of the editor and this is great, but I had a thought knowing that preview toggle was added for performance issues.

It would be useful if we could give editors the ability to toggle the preview on and off. This wouldn't be a setting that was saved but the default state could be configured in the configuration.

So my thoughts are this:

1) Setting for enabling / disabling preview extended to be 3 states - Enabled / Disabled / Toggleable 2) Additional setting of Preview Toggle default state - "Show / Hide"

If Toggleable is set then a toggle appears at the top of the editor for easy switching. between the two views.

It's just an idea, but if Stacked is being used for building long pages it could help have the page load quickly to get an overview of the content present and then let editors check what things are looking like (assuming devs are building the previews with that level of detail).

[Idea came from my thoughts of trying to reduce the number of times editors click the "preview" button and create "unnecessary versions" in Umbraco]

leekelleher commented 5 years ago

Thanks for the suggestion @NikRimington!

We had a PR (#52) a few months back suggesting collapsible previews, (not to the extent that you've outlined). After a lot of discussion we declined the feature, here's our reasons: https://github.com/umco/umbraco-stacked-content/pull/52#issuecomment-418689694

That said, I'm not ruling anything out yet. @mattbrailsford any thoughts?

Webbist-dev commented 5 years ago

I am still in favour of this

mattbrailsford commented 5 years ago

Ok, I'm coming round to the idea a little. I guess in some ways it's similar to when the doc type editor goes into sort mode so it could be a nice way for editors to switch between "Preview" and "Outline" mode depending on their preference.

Unlike #52 the idea of an "all or nothing" is what makes it more appealing to me atm so I'd be open to this version of it. UI / UX will need to be concidered in the implementation, but if you or @xanderakafonz wanted to give this a go on a new PR, I'd be happy to give my feedback.

@xanderakafonz appoligies for not giving this option as feedback on your PR, but I didn't really think of this alternative at the time.

Webbist-dev commented 5 years ago

I'll see what I can do over the holidays