On my site I have a content type "File".
I've embedded the node create form in a block and placed it in the right column of a page. I did this so that when a person is on that particular page, they can create a "File" without having to go to a different page to do so.
I've created a rule with a limit on the number of nodes that can be created. The rule has 2 actions on execution:
1. redirect to the page that contains the block with the embedded node create form
2. display a message that the limit has been reached.
It does everything that it's supposed to. However, when the redirect happens, you are still able to fill out the create node form in the block...when you click "save", the rule brings you back to the page and displays the message and the content type "File" gets saved.
So, I'm wondering if this is an issue with the module or if the special circumstance of the content creation form being embedded in the block makes it impossible to use the module.
Thanks for your help!
Comments
Comment #1
jdwfly commentedA couple more things and I should be able to help you better.
1. Please export your rule and post to this issue queue.
2. Please confirm that you are using the latest dev snapshot.
3. Please explain how you are embedding the form into the right column of a page.
Thanks
Comment #2
zdean commented1. the rule
2. I confirm that I'm using the latest dev snapshot
3. I used the following to embed the code:
Thanks for your help!
Comment #3
jdwfly commentedI think your problem is that you are not immediately issuing the page redirect. You need to put the configurable message as the first action and then the page redirect afterwards and make sure to select "Immediately issue the page redirect"
That should fix your problem.
Comment #4
zdean commentedI tried this but am still able to create the node.
Is there any kind of action that allows you to disable a block? That way, if the limit is reached, the block with the create form could be disabled and replaced with another block that simply has the message that the limit has been reached.
Comment #5
jdwfly commentedCan you reconfirm this using the formblock module? If it is still allowing you to create a node I'll need to look into this more.
Comment #6
balsamaI can confirm that it still allows you to create a node when the form is embedded in a block using the form block module. Any ideas?
Comment #7
jdwfly commentedOld support request and I cannot reproduce.