[development] D6 node object question

jeff at ayendesigns.com jeff at ayendesigns.com
Wed Feb 16 21:08:31 UTC 2011


I discovered another oddity when looking at a node object being 
displayed via node block ... the taxonomy array is empty. Anyone know if 
this behavior is a node block issue or whether it relates to something 
else I'm not aware of?

On 02/15/2011 01:10 AM, jeff at ayendesigns.com wrote:

> When I load a node, if my module knows that the content type is 
> selected for use with it, it takes the field name it's supposed to 
> interact with and looks at the field's contents.
>
>
> One site I'm running this on has 8 content types in use. Seven were 
> marked to be used with the module, and for each, if the field were 
> field_image, I would access $node->field_image, and all was well.
>
>
> Today I enabled it using the final content type, and added a 
> field_image to that content type too. The only difference with that 
> one is that it is enabled for use with node block.
>
>
> I find that although other cck fields on the content type are at the 
> $node->fieldname level, the image field does not appear there, but 
> does appear in $node->content->fieldname.  So, I'm wondering, should I 
> be looking in $node->content->fieldname on all of the content types 
> instead of just $node->fieldname, and if not, what's going on with 
> this one?
>
> -- 
>
> Ayen Designs
> 388 Bullsboro Drive #105 · Newnan, Georgia 30263
> 404-271-9734
> Web:ayendesigns.com <http://ayendesigns.com>
> Blog: theAccidentalCoder.com <http://theaccidentalcoder.com>
> Drupal: j. ayen green <http://drupal.org/user/367108> (367108)
> IRQ: j_ayen_green
> IM (Yahoo) baalwww    (MSN) baalwww at yahoo.com
> Skype: ayendesigns | Facebook: ayendesigns | Twitter: @ayendesigns
>
> Ayen Designs is the computer services division of
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110216/bab3dd23/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ayenlogo
Type: image/jpeg
Size: 8316 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20110216/bab3dd23/attachment-0002.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acmelogo
Type: image/jpeg
Size: 1462 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20110216/bab3dd23/attachment-0003.jpe 


More information about the development mailing list