[support] node_load in Drupal 7
Ms. Nancy Wichmann
nan_wich at bellsouth.net
Tue Jan 24 03:38:31 UTC 2012
Are you sure you don't have the nid somewhere? How did you get to the Panel without it?
The problem with using the title is the node's title need not be unique. What are you going to do if there are two nodes with the same title? Yes, you could use the Views context - it's really not difficult if you read the form descriptions.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
>________________________________
> From: Joel Willers
>
In Drupal 6, you could node_load( array( 'title' => 'node title', 'type' => 'page' )
>Is there something similar in D7? It seems to force you to know the NID. I need to load by node title.
>
>This is actually for a Panel context, which is NID also, so I was going to make a new argument for Node Title. I think there is a Views Context, but I don't fully grasp that right now, so I haven't really looked into it. Suggestions?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120123/b3121c69/attachment.html
More information about the support
mailing list