Episerver has a feature called Episerver Projects that allows editors to work and collaborate on a number of changes that are grouped together into projects. This is allows multiple changes to be made to a site that can be previewed and all published at once which is useful for things like campaign launches and site updates. This is a great feature but more than once in the Episerver Forums I have heard of the requirement to revert all changes made in a project.
Thinking about this, an approach could be to create another project to revert the changes made by a project. This allows editors to quickly get back to the state before the project was published. The code to achieve this can be found over at the following Gist: https://gist.github.com/davidknipe/d64f9d9993443fd5443c6a6a9f6dae13 and does the following things:
Episerver has a great capability that allows content to rendered inside content areas called partial views. This allows an alternative rendering of a piece of content when displayed in content areas. Its often used for teaser type capability where editors take something from the tree and drags it onto a content area. However it's not possible to preview what these partial views will look like easily without actually dragging them onto a content area and trying it.
I wanted editors to be able to see what a partial view would look like and also allow them to edit the content behind it using on page edit before publishing some content. This can be done using a preview controller and a display channel to allow switching to a partial view preview (even if it's not the exact use that content channels are meant to be used for!).
Seeing it in action
If you are a Microsoft Teams user and want to work using mutliple windows then this tip is for you.
Sometimes I find I want to do 2 things on Microsoft Teams at the same time. Something like having two chat windows visible at the same time rather than switching between two chats in the Teams UI. However Teams doesn’t support multiple windows at the moment. To get around this you can log into the web version of teams by browsing to https://teams.microsoft.com and clicking the “Use the web app instead” link as shown below:
A new version of Virtual Template System is now available with some UI enhancements. Virtual Template System allows users to view and edit templates in the Episerver UI.
Specifically the enhancements are as follows:
- The revert button is now either green or red. Green indicating that the template is the same as the one on disk, red meaning the template is different so should be reverted with caution
- When saving a template using the "Save" button the confirmation message now disappears as soon as an editor changes it
- The path is now clickable to either edit or view a template depending on whether its virtualised or not
- Now possible to choose to search in file names only, rather than whole file contents
- Minor bug fixes
A quick video can be seen here to show the changes: