rickbutterfield / Umbraco.Community.BlockPreview

Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors.
MIT License
15 stars 10 forks source link

Support for IsVisible #4

Closed AaronSadlerUK closed 1 year ago

AaronSadlerUK commented 1 year ago

I'm using the plugin from Nathan called Nesting Contently: https://github.com/nathanwoulfe/NestingContently

This makes the blocks get hidden with IsVisible, is there a way to hook in and see when the request is coming from the backoffice?

At the moment the block gets removed from the backoffice entirely

AaronSadlerUK commented 1 year ago

Just a thought on a way to do this...

Setting UmbracoContext.InPreviewMode to true would allow for a way to distinguish these requests