Creating public websites with staging and custom skins

In this tutorial, Martin Aspeli plays investigative journalist, deciphering Alan's ramblings to find out exactly how Enfold deploy real sites with staging and different authoring and public skins.

Warning: This item is marked as outdated.

  1. Introduction Why would you want to do this?
  2. Pieces of the puzzle Several technologies are involved in this set-up. It is important that you understand what each of them does.
  3. Setting up Plone With the server set up, a Plone instance created and products installed, we must configure the Plone site to work with staging.
  4. Configuring your web server With Zope and Plone set up, you need to set up Apache or IIS so that the public site and the private site are on separate URL
  5. Trying it out With all the pieces in place, you can try out your new staged site.
  6. Taking it further The solution we have outlined is fairly flexible. However, not all content makes sense to stage. There are also many other ways of using EnSimpleStaging to stage content.

All content on one page (useful for printing, presentation mode etc.)

 

Deployment permissions

Posted by Mark Ayliffe at Feb 17, 2006 10:41 AM
I want to set things up so a subset of my publishers have the right to
deploy the site. I don't really want to give them the manager role. There are probably many ways to do this, I did it as follows:

The deploy transitions in the staging_workflow need the "Use version control" permission, so I've added a "deployer" role[1] to the root of my site (bottom of the security page in ZMI), a Plone group with the role and added this group to the users I want to have it. The label field is now enabled on the staging folder (the initial clue that you have rights to deploy apparently). You also need to give the group rights in the public_website folder, I gave mine the reviewer role, possibly the member role might be adequate.

[1] I know adding roles is frowned upon, but I'm pretty sure this is the
only one I want to add. Plus IMHO deploying is a significantly different
action from publishing.

This is exactly correct!

Posted by Alan Runyan at Apr 05, 2006 02:14 AM
This EXACTLY correct! and how we use the system. Creating new roles is not frowned upon! That is what Plone's Role based security is for -- to be extended. Did you deploy your solution? is it externally visible? both oxfamamerica.org and povertylaw.org use EnSimpleStaging. The only difference is povertylaw.org uses entransit and deploys content remotely.

This is a good approach

Posted by Kevin Teague at Nov 04, 2006 11:23 PM
Using EnfoldSimpleStaging was the approach that I took when re-doing my organizations web site this summer (http://www.bcgsc.ca). I can really liked the benefits of keeping the public skin simple, and avoiding the preconceptions of wrapping an authoring UI within your public user interface.

One thing I setup the other day was a simple hide/show workflow with a 'triggerIncrementalDeployment' script called after each workflow transition. Then I have a staging area just for our Job Postings. This seems to work quite nicely for our admin staff who found the whole "go to the Deploy Stage page and click 'Incremental Deployment'" rather intimidating. My one liner looked like this:

# triggerIncrementalDeployment.py
# parameters: state_change
state_change.object.script_workspace_publish_stage(
    IncrementalDeployment=True,
    label=None,
    comment='Workflow auto deployment',
    queued=False )

Workflow is It!

Posted by Alan Runyan at Dec 19, 2006 02:09 AM
This is *exactly* the point of EnSimpleStaging! Good job Kevin! I wish more people would share their experiences. People are having tremendous success with this approach; it seems people prefer to customize the Plone templates instead of separating out the customizations 100% into a separate product/skin/configuration.

It's nice to be able to 100% decouple the change management from Plone and your custom retail/delivery skin. I hope more people can provide insights and scripts like the one you provided.

http://www.envymags.com/ is a small site I put together for a Houston magazine. It took me almost no time at all. The retail skin is 100% z3 views + zpts. The only 'Plone' work that had to be done is building out 2 custom content types & install CompositePack. The left/right sidebars are controlled with CompositePack; point 'n click & drag 'n drop. Very nice.