A new Type of Node for a SELECT popup is needed (by me, at least).
BACKGROUND USE CASE:
[safe to ignore if you see the need already]
I need webform's simplicity of not creating a new node for each submission, as I have to do this:
Workflow approved Pages get pushed through DEV->STAGING->PRODUCTION
User-contributed content (marketing leads) gets added by visitors in PRODUCTION
With CCK, suppose pages 1-20 get pushed out for launch.
Then ID #21 gets created in PRODUCTION.
Then we build a new page, in DEV->STAGING which is given node ID #21.
Obviously, we have a real problem (race condition) when we push the new Page to PRODUCTION.
Alas, we *need* a SELECT box based on the Page nodes we are pushing.
(Actually, two different SELECT boxes based on other CCK nodes, but the Page node is a minimal demonstration of need)
I couldn't find anything already in issues, nor any existing modules, but I apologize in advance if I just missed it...
Comments
Comment #1
quicksketchI don't see how this relates to Webform module, could you elaborate what you're expecting Webform to do here?
Comment #2
RichardLynch CreditAttribution: RichardLynch commentedI would like webform to add another OPTION to the SELECT that already has:
* date
* email
* fieldset
* file
* grid
* hidden
* markup
* pagebreak
* select
* textarea
* textfield
* time
The new OPTION would read:
* node
Upon choosing this OPTION, the administrator would be asked which Content-Type, and field (possibly a CCK field) to use for the OPTIONs to be presented to the end user.
The end user then sees a popup with every node of that type in a popup.
Example:
Suppose you have a form where the user has to pick from your Content-Type Sandwich. Also suppose the Sandwich CCK Content-type has everything the kitchen needs to make the sandwich, and all that heavy-lifting business process behind a Sandwich. But the end user just needs to pick one node from a list of all Sandwich content-type nodes.
I managed to do this with CCK + Views, I think, and formblock to get it into a block.
To be honest, I'm not even 100% sure how I managed to make the popup with all nodes of content type X appear. It's been a bit of a whirlwind for me and I'm still not quite getting the hang of Drupal.
Comment #3
quicksketchWhat you're describing is already a feature request (through the same mechanism as CCK and Views): #767290: Allow Views to be used as pluggable select list values
Though this will only be in the 3.x version of course, since no new features are being added to 2.x.