Attached is an include file which lists (via select, checkboxes or radios) the contents of any given node (sub)queue. You can attach this as a field to the webform and it will list all available nodequeues (including individual subqueues, such as term smartqueues or user smartqueues).

This allows a form to provide a controlled list of node titles to a user and would be very handy for forms design for requesting more information on given nodes (say they were books or reports).

This is actually beign developed so that http://www.sportbusiness.com/exec can be converted from a custom module/form to a webform. The list of checkboxes on there is a custom query which pulls up all report nodes which have a CCK field set. My colleagues have no method for ordering them except for manually changing the submitted dates. If they want any fields moved, changed or added they cannot (due to the custom coding).

I'd love to see this added to Webform. I've done some basic testing and it appears to work. The analysis page picks up if the node is still in the queue, removed from the queue or deleted completely. The CSV download seems to work too; allocating one column for every node in the queue.

My only "concern" here is in terms of node_access and nodequeue_access of which I do not do any checks. Another minor issue is that I cannot figure out how to make this include NOT include is nodequeue is not enabled.

Cheers,
Nick

Comments

nicholasthompson’s picture

StatusFileSize
new13.76 KB

Damn security.. ;-) The file was refused due to it ending in .inc... Renaming and trying again.

nicholasthompson’s picture

StatusFileSize
new16.21 KB

Ok *now* it does access checking :)

I've also added comments and refined a few functions.

quicksketch’s picture

Status: Needs review » Closed (won't fix)

This will not be added to Webform directly. The 3.x version now has a public component API though, you might consider making this into a separate contributed module.