London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Viewing expired blocks in On-Page Edit

Vote:
 

Hi!

Usually when using On-Page Editing, Episerver adds a striped layer to indicate that a block has expired. However, this does not work when the block is placed in the content area of another block. It just looks like normal. Is there a way to get the same confirmation there when a block has expired?

Episerver CMS v11.14.0

Episerver CMS UI 11.23.2

/Niklas

#211222
Edited, Dec 20, 2019 11:46
Vote:
 

Hi Niklas,

I think you can create a preview rendering for Block and in that code, you can check for the Expired content.

Please refer below posts for creating preview block-

https://world.episerver.com/documentation/developer-guides/CMS/rendering/preview-rendering-for-blocks/

https://www.jondjones.com/learn-episerver-cms/episerver-developers-tutorials/episerver-blocks/how-to-preview-a-block-in-episerver/

#211226
Edited, Dec 20, 2019 13:16
Vote:
 

I'll try that, thanks!

#211227
Dec 20, 2019 15:48
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.