Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

Commented Unassigned: Feature Request: Site / page preview time-machine [2125]

$
0
0
It would be useful if the C1 console site-browser and page previews included a function to set a date in the future, in order to show what the site / page would look like at that point in time... based upon the start and end publish date fields for pages.

For users with the Composite.Versioning.ContentVersioning package installed, it would also be useful to set a point in the past to view what the site looked like then (for example, two weeks ago).

This would help editors explain changes to the site to their managers, or, in the event of legal issues involving miss-selling, lawyers, etc.
Comments: ** Comment from web user: burningice **

Not really possible the way C1 has implemented its publishing. They way publishing/unpublishing works in C1 is that it has a background thread running that physically moves records between its Published and Unpublished tables at the specified times.

To do what you want, you discard the concept of Published/Unpublished tables and just store everything in a single table and extend every record with Pusblish and Unpublish dates. That way its a question of a single Where-statement to show how your site would look like at noon tomorrow or on christmas eve.

The teaser-system in C1Contrib has opted for this pattern, so for each and every query we make for teasers, we filter it for publish/unpublish dates like this

https://bitbucket.org/burningice/compositec1contrib/src/9a650a233cc80667993920ee84163a6b1e2f20a4/Teasers/Data/TeaserFacade.cs?at=default&fileviewer=file-view-default#TeaserFacade.cs-132

Its then very simple to replace Now with a parameter from ie. the querystring.


Viewing all articles
Browse latest Browse all 2540

Trending Articles