Passing a (yet to be created) node ID to a custom content element

deejmer - July 16, 2008 - 18:56

An interesting challenge….

I have a custom content type. Within the content type, I have a WYSIWYG enabled textarea which populates with a default value (which is an image in this case).

I want that image to also be a link; which is no problem, I know how to get the URL passed to that element already.

The issue is, I want that link to be the very node that is currently being created (not created yet, but being drafted) by somehow passing the “pending” node id to it.

Does it make sense on what I’m trying to do? Is this in any way possible?

Let me know if you need clarifying information or have guidance….thanks!

If I understand the

nevets - July 16, 2008 - 19:54

If I understand the question, no, since the node id does not exist till after the node is saved.

 
 

Drupal is a registered trademark of Dries Buytaert.