tight integration with views module
moshe weitzman - July 28, 2006 - 03:10
| Project: | Publish |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | moshe weitzman |
| Status: | active |
Description
Let admins specify a View as a channel. This is more flexible than current node listing logic. IMO, we can ditch this logic in curent publish module and just make Views mandatory.

#1
I concur.
#2
Great! I thought I said this months ago :P
#3
Lets get this spec'd and funded.
#4
fyi, looks like bryght is sponsoring me to deliver this. i will use this issue for progress reports. i will probably be doing some subscribe work since the receiving site needs to push these nodes into a corresponding organic group
#5
#6
@Moshe, any update on this? I'm interested in helping out.
#7
Since I am upgrading the Publish and Subscribe modules to Drupal 5.x, this is of interest to me. I have a brief spec for what needs to occur for this to happen. As follows:
This approach would be perfectly backward compatible with subscribe, I believe.
#8
that sounds like a nice plan of action. sorry i never got to work on this.
#9
Long awaited, but here at last. Diffed against latest 4.7 version from today. It uses the possibility of a node type filter in an integrated view to determine which node types are published. Conditions are handled by passing arguments to an embedded view -- which does, admittedly, require an API module I had created some time ago, called Views Argument API.
Views are used to generate the channels, and one single view can generate many channels by editing the channel and specifying which arguments to pass to your view. You will have to download and enable the Views Argument API module, and then create a new view. Pay attention to the new Views Argument API fieldset at the bottom of the form to edit your view. Then, edit your channel in admin/build/publish and specify a view, pick out the arguments and the rest is the way it was in 4.7, I think.
#10
Long awaited, but here at last. Diffed against latest 4.7 version from today. It uses the possibility of a node type filter in an integrated view to determine which node types are published. Conditions are handled by passing arguments to an embedded view -- which does, admittedly, require an API module I had created some time ago, called Views Argument API.
Views are used to generate the channels, and one single view can generate many channels by editing the channel and specifying which arguments to pass to your view. You will have to download and enable the Views Argument API module, and then create a new view. Pay attention to the new Views Argument API fieldset at the bottom of the form to edit your view. Then, edit your channel in admin/build/publish and specify a view, pick out the arguments and the rest is the way it was in 4.7, I think.
#11
hi morrisinger. thanks for following up here. i may not be able to test this, but i do want to call your attention to the efforts at http://drupal.org/node/103171. thats a new views form element which is likely to get into Views project soon. It might deprecate some of your work with Views argument API. not sure.
#12
Moshe,
Thank you for the head's up on that. It looks like it may address a different issue. My API actually just hugely assists in developing administrative forms to pre-select the values of arguments to pass to embedded views. It also defines some basic mechanisms for picking the values to pass to embedded views as arguments (such as the active node's term ID for a specific vocabulary, etc.,) allowing people to develop dynamic views the content of which may change based on what a user is doing or what is going on inside of a module. I do not think the form element you mention will deprecate this, but, if it does, I'll be ready to figure out how to move that into this project if asked.
Thanks for taking a look at this.
-- Morris
#13
The patch applied and the module seems to activate correctly. But after you create a channel and click on "views" I get the following error:
Fatal error: Call to undefined function: views_argument_api_get() in /home/olivier/public_html/d5/sites/all/modules/publish/publish.module on line 323Other comments:
I don't think the module should declare it's own package.
There is no description of the module.
Is there anyone that is working on a D5 version of the subscibe module (http://drupal.org/project/subscribe)? It also seems to be impossible to get to its issue queue because of some namespace issue with the word "subscribe".