I'm currently working on a site and the client has insisted that being able to preview content is imperative. But, the preview must be within the front-end theme, not just spitting the fields at the top of the form as Drupal currently does (the site is being done in Drupal 5 and an upgrade to 6 is out of the question). The way we've done this in other CMSes is to setup a preview.domain.com sub-domain and then have that load the most recent drafts of all content, making preview very easy. I was thinking of using Drupal's revisions for this but could not find a way to save a revision without publishing it. So the way this would work would be if node A is at revision 1 and I hit the 'save draft' button it would save that content as revision 2, but wouldn't actually publish revision 2 until I later hit the 'publish' button. I have a few ideas to do this with some custom code but was wondering if anyone has ever had to implement a real preview in Drupal before and, if so, how you got it up and running? The biggest problem I keep running into with all my ideas is how to handle saving new content as a draft, so I'd be interested in hearing how this was done as well if anything special needed to be done for new content vs existing content.
I think revision fu will do what you want.http://drupal.org/project/revision_fu
On Aug 12, 2009, at 11:07 AM, Steven Surowiec wrote:
I was thinking of using Drupal's revisions for this but could not find a way to save a revision without publishing it. So the way this would work would be if node A is at revision 1 and I hit the 'save draft' button it would save that content as revision 2, but wouldn't actually publish revision 2 until I later hit the 'publish' button.
You've just described: http://drupal.org/project/revision_moderation __________________ Michael Prasuhn 503.512.0822 office mike@mikeyp.net http://mikeyp.net
Well, I guess. I have filed an issue months ago that revision_moderation should depend on revision_fu actually... but I forgot to update that issue when we released revision_fu. Thanks for the reminder :) On Wed, Aug 12, 2009 at 11:25 AM, Michael Prasuhn<mike@mikeyp.net> wrote:
On Aug 12, 2009, at 11:07 AM, Steven Surowiec wrote:
I was thinking of using Drupal's revisions for this but could not find a way to save a revision without publishing it. So the way this would work would be if node A is at revision 1 and I hit the 'save draft' button it would save that content as revision 2, but wouldn't actually publish revision 2 until I later hit the 'publish' button.
You've just described: http://drupal.org/project/revision_moderation
__________________ Michael Prasuhn 503.512.0822 office mike@mikeyp.net http://mikeyp.net
If you want a preview domain, Domain Access can provide that by batch assigning content to one domain or the other, and will work with either revision module. You would need some custom code to show latest change on site A and not on site B. (I will be talking about this at DrupalCon Paris.) - Ken agentrickard http://drupal.org/project/domain On Wed, Aug 12, 2009 at 2:27 PM, Karoly Negyesi<karoly@negyesi.net> wrote:
Well, I guess. I have filed an issue months ago that revision_moderation should depend on revision_fu actually... but I forgot to update that issue when we released revision_fu. Thanks for the reminder :)
On Wed, Aug 12, 2009 at 11:25 AM, Michael Prasuhn<mike@mikeyp.net> wrote:
On Aug 12, 2009, at 11:07 AM, Steven Surowiec wrote:
I was thinking of using Drupal's revisions for this but could not find a way to save a revision without publishing it. So the way this would work would be if node A is at revision 1 and I hit the 'save draft' button it would save that content as revision 2, but wouldn't actually publish revision 2 until I later hit the 'publish' button.
You've just described: http://drupal.org/project/revision_moderation
__________________ Michael Prasuhn 503.512.0822 office mike@mikeyp.net http://mikeyp.net
-- Ken Rickard agentrickard@gmail.com http://ken.therickards.com
participants (4)
-
Karoly Negyesi -
Ken Rickard -
Michael Prasuhn -
Steven Surowiec