3
Vote

Add link to preview content item after it has been saved or published

description

There should be a link to preview the content item (just like on the content list page) when you have either saved or published a content item. This will save having to navigate back to the content list and clicking preview on the first item

comments

agriffard wrote Dec 12, 2012 at 12:36 PM

One way to do this 'manually' could be to use a Rule with a Notification action :
  • Enabe Rules module
  • Add a Rule named "ContentNotification"
  • Edit it and Add an event when a Content is Published (Choose 'Any' or a specific content type)
  • Add a new action : Notification : Notification type = Information
  • Message : <a href="{Content.DisplayUrl}" target="_blank">View on site</a>
This will notify a message when a content is published.
A limitation is that there is not an event when a 'Content is Drafted' to allow us to add a notification with that kind of message redirecting to a preview url :
<a href="/Contents/Item/Preview/{Content.Id}">Preview</a>

I don't understand when an event "Content Versioned" occurs.

agriffard wrote Aug 29, 2013 at 1:33 PM

May be the Autoroute Part, in Edit view, should contain a small image at the end of the textbox to open the preview link?

agriffard wrote Nov 16 at 3:42 PM

The AutoroutePart now displays a 'View' link when you edit the content. (Bertrand made this enhancement if I remember well)

May be a similar 'Preview' link would be useful if we detect that a Draft exists.