Try our conversational search powered by Generative AI!

Viewing saved pages

Vote:
 

Is there a way that a website could be configured to show the latest saved pages held in the CMS, which may be newer than published pages?

Many thanks.

#44661
Oct 12, 2010 12:00
Vote:
 

Hi Daryl!

Do you mean to bypass the published page completely and always show the most recently saved version?

/johan

#44662
Oct 12, 2010 12:27
Vote:
 

Yes.  This would be so that users can preview the site before publication in the context of a website rather than through the CMS editor.

#44664
Oct 12, 2010 12:30
Vote:
 

I see!

You could probably do it by hacking a small PagePlugin together, and let it replace the default loaded CurrentPage with
the latest saved PageData version in a suitable Page-Init-event, Init for example.

I would however recommend using some "triggering" mechanism for enabling this function, for example requiring users to login using
some specific account...

/johan

#44665
Oct 12, 2010 12:34
Vote:
 

Thanks Johan.  I will look into your suggestion.

#44666
Oct 12, 2010 12:47
Vote:
 

I uploaded some sample code to our Code section if you want to look at it:
http://world.episerver.com/Code/Johan-Olofsson/Preview-Latest-version/

/johan

#44671
Oct 12, 2010 14:59
Vote:
 

Many thanks - much appreciated.

#44688
Oct 12, 2010 22:15
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.