Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By roni1 on
Hello,
Does anyone know what the php would be to print the teaser of a specific node?
Thanks.
Comments
Use node_view function,
Use node_view function, There is a sample here http://drupal.org/node/110950#comment-190647 and a description here http://api.drupal.org/api/4.7/function/node_view
Thanks
Thanks, That is just the info I needed, I didn't know the right thing to search for when I was searching to see how to do it.
However, I do not know enough to be able to apply the parameter info in the description of the node_view function to the example showing how to print a full node to make it print a teaser only. If this is something that would be easy to explain that would be a huge help.
Thanks again for pointing me to that info H3rnand3z!