I want to add a rules link, in node add form, the link will pop up in overlay an another node add form of different content type ,
use case:
I have vocabulary organization, I am using NAT which will create a term when a node is created,
I have created content type organization, the node title is saved as term in organization vocabulary
I have another content type called job, and it has field organization, User can either select the existing term or "create new organization"
This is the "link"i want to pop up create new organization form,After creating new organization, the term should be available in the organizations list to select can this be done using rules link, or can any one suggest a way to full fil this requirement pl
Comments
Comment #1
eliaspallanzani commented+1 for adding rules link in add and/or edit form
Comment #2
jorditr commentedAnd also positioning it on the links area would be a must :-)
Comment #3
bennos commentedYou can do it. Just customize your form or page.
Write a module or use an existing TPL.
you can add the rules link with php
<?php print render(rules_link_render('rules_name', $node->nid)); ?>replace "rules_name" with the internal unique name.
If varibles are defined, they need to be passed. "$node->nid". Normaly the node-ID. Complex rules that uses 2 or more variables, then you need to pass them .
Comment #4
kopeboyIs it possible to make the link a field?
For example using a Link field on a content type manage fields page and putting in the Url of the Rules link?