Project:InsertNode
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi Great Module! By inserting a node will the tokens for that node become available?

Thanks,

PD

Comments

#1

No, to the main node, it just represents content.

I'm not too sure how we could do that, especially because you'd now have 2 titles, 2 teasers, 2 body, etc.

What's your idea? How would you use those?

Thank you.
Alexis

#2

Thanks for you reply Alexis, I'm currently using a module called Fill PDF http://drupal.org/project/fillpdf to populate fields in a PDF by grabbing the tokens attached to a NID.

I wanted to use tokens from a parent node that I've attached to the child node in order to populate the PDF but haven't come across a way to do this yet?

Fill PDF only allows you to choose 1 NID so I was hoping by attaching a node, the main node would inherit the attached nodes tokens.

Is this possible or is there a smarter way to achieve what I'm after?

Thanks for your help.

#3

PD,

Well...

Everything is possible, but I don't see how I could make that happen with the NodeInsert module.

If you have some cash, I could get you a specialized module for that to work.

I just cannot think of an existing module capable of that feat... Views does not generate any tokens... but it could be that you could merge both nodes in such a way that you'd get access to all the data you need?

Thank you.
Alexis

#4

Ummm I think I might have just come across a way to achieve what I'm after... Its a bit of a play around but it'll work. I can use the rules module to load a node reference to the parent node and then use the tokens rules provide to populate the Fill PDF.

Took awhile to figure out that I could do this. Tricky stuff RULES to the rescue.

Thanks for your help Alexis

#5

Status:active» fixed

I thought of Rules too but I did not think that it could help with the fields... But I'm glad you solved your problem. I will mark this request fixed.

Thank you for letting us know your solution.
Alexis

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here