This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Where does the taxonomy get loaded into the node object?

My module needs to access the taxonomy terms attached to a node when it is displayed. I dumped the return value of node_load() in the browser and saw that the terms are in an array under $node->taxonomy.

However, when I dump the node object that is passed to hook_load, I don't see $node->taxonomy anywhere.

So at what point do these terms get loaded into the node object, and how can I trigger it? Or should I just "manually" query {term_node} and load the terms myself?

How to include external PHP File?

I do a new module which include external file from phpSysInfo (http://phpsysinfo.sourceforge.net). I named this module as sysinfo.module and working fine on my notebook, but when I upload this to my server this error occurs: No Hacking.

Yes. Only a white page with this text: No Hacking.

This is the header section of sysinfo.module which caused this error:

imagecache needs temp directory!

Hi Folks,

just writing in to let others know that in your files/ directory you need to have a temp directory in order for imagecache to work. I removed the file early on because I thought only the image.module itself used that. Just in case someone else runs into this problem!

Cheers

Views Help

Does anyone know how I would skip a number of nodes when doing a view.

Ie: ONE view has the first 3 nodes with TITLE, BODY and FULL TEASER

The next view has The next three nodes (or SKIP the first THREE nodes) with just title...

Then I place them on the same page... the first view shows a more in depth view of the articles... the next one just shows a title link to the older articles....

So whenever I do a new article it doesn't double up

Thanks in advance. JD

Ldap integration

Was anyone able to get Ldap integration module to work with version 5?
I copied the files to the module folder but nothing is showing up on the admin->module section.

Anyone got code on how to use node_add to create nodes?

Let's say you have a url like this:

http://drupalsite.com/node/add/flexinode-3?edit[og_groups][]=72

I want to use node_add to create this node.

I know you would do something like:

echo node_add('flexinode-3');

But, how do I set the group context or validate other stuff in the form before it's submitted?

Thanks for any guidance.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions