Deploy nodes based on a view

marcvangend - April 23, 2009 - 21:43
Project:Deployment
Version:6.x-1.x-dev
Component:views_deploy.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

heyrocker - April 23, 2009 - 21:50
Title:Add nodes to deployment plan automatically?» Deploy nodes automatically
Category:support request» feature request

You 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

#2

marcvangend - April 23, 2009 - 22:39

Greg, 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.

#3

heyrocker - May 5, 2009 - 14:13
Title:Deploy nodes automatically» Deploy nodes based on a view

I 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.

#4

marcvangend - May 5, 2009 - 18:58
Component:Documentation» views_deploy.module

Yes 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 :-)

#5

heyrocker - November 5, 2009 - 03:29
Status:active» fixed

A 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.

#6

marcvangend - November 5, 2009 - 08:03

Greg, that's a great solution for this, thanks for bringing it to my attention.

#7

System Message - November 19, 2009 - 08:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.