Active
Project:
Code per Node
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2012 at 03:52 UTC
Updated:
22 Jun 2013 at 15:48 UTC
I'm specifically seeing this when I try to use cpn with the webform module.
The webform module allows a node to be created that accepts fields of a form. Upon submission, it normally redirects to a new page of the form /node/XX/done. Though I have cpn enabled for webforms, and cpn comes up for the node with the form, it does not come up for the "thanks for submitting" node.
Comments
Comment #1
damienmckennaTo explain why this happens - the "thanks for submitting" page isn't actually a node and doesn't trigger hook_node_view for the Webform node. That said, it shouldn't be too hard to do, though it would be best as an option that could be controlled - not every site will want this.
Comment #2
damienmckennaThis is a feature request.
Comment #3
damienmckennaClarifying the title further.
Comment #4
Kaz de Groot commentedThere is probably a nicer way to do this (with an option, something that also handles node specific confirmation templates, etc) but this seems to do the trick for me: