Sort by term ID and displaying body text

TinySpeck - October 10, 2008 - 07:46
Project:Announcements
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am customizing the display for results sorted by taxonomy terms using function _announcements_by_terms. I need to use both the abstract and body info. I was able to access the abstract using the query in function announcements_nodeapi, but I cannot figure out how to access the body information.

#1

NancyDru - October 23, 2008 - 20:14
Status:active» fixed

The body is purely part of the node (as the abstract will one day become) so it would be referenced as $node->body (it may be that $node needs to be replaced with whatever the object name is).

One must be careful in using a function beginning with an underscore. Those are considered internal-use and may change, or disappear, at any moment. If there is an API function you need, you should open an issue to ask for it.

#2

Anonymous (not verified) - November 6, 2008 - 20:21
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.