I'm really enthousiastic about the possibilities the deploy module offers, so thanks for all the work. There's one thing I couldn't figure out reading documentation and watching the screencast: Do you always have to add nodes to a deployment plan manually, or can you also configure deploy to add nodes to a deployment plan automatically?
Comments
Comment #1
gddYou could get deploy to add nodes to a plan automatically, for instance through hook_cron(). However you can not currently deploy them automatically. The deployment requires the username and password be entered every time, and there's no secure way around this at the moment. It's a known problem but I don't have a good way around it at the moment.
Leaving this open as a feature request
Comment #2
marcvangendGreg, thanks for the quick reply.
I'm mainly interested in automatically adding nodes to a plan, not completely automatic deployment. Maybe I'm wrong, but if plans would be deployed without any user intervention, then what purpose would it serve? I think one of the main advantages of deploy is that it can be a kind of safety switch between writing and publishing content; that safety would be lost with automatic deployment.
Now that this has become a feature request: I think it would be nice if the content selected by a view, could be regarded as dependencies of that view. In other words: you would simply add a view to a deployment plan, and when it's deployed, the result of the view's query would be deployed as well.
Comment #3
gddI have heard some people asking for deployments to be able to occur automatically in some situations, for instance to deploy content at a specific time, or to be able to automatically deploy comments from live back to a staging server.
Automatically adding nodes to a plan is pretty easy using the API. Are you a coder? If you look at the function node_deploy_operations_add_form_submit() in node_deploy.pages.inc it should give you a guideline of how this works.
As far as views support, I think this is an interesting idea. I am going to have support soon for deploying actual views (the structure of a view, not the content display by it) but maybe you could add a display type for Deploy or something. I've modified the title and will leave this open as a feature request.
Comment #4
marcvangendYes I am a coder, I guess I'll manage to get the auto-add-to-plan stuff working when I need it.
As far as views support, I'm afraid that my coding skills and views knowledge are not sufficient to make a start with that, but I'm glad I could at least contribute an interesting idea :-)
Comment #5
gddA good solution to this problem has been found, as Deploy is supported by the Views Bulk Operations module. I have written up some basic instructions on how this works at
http://drupal.org/node/623892
Basically you create a view, you set its style to Bulk Operations, check a couple settings and *boom* there's a View you can use to pick and choose nodes to deploy. JUST LIKE MAGIC.
Closing this issue, hope this comes in useful.
Comment #6
marcvangendGreg, that's a great solution for this, thanks for bringing it to my attention.