<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bidimailui-detected-decoding-type="latin-charset" text="#000000"
bgcolor="#ffffff">
<p style="margin-bottom: 0cm; margin-top: 0pt;">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?<br>
<br>
On 02/15/2011 01:10 AM, <a class="moz-txt-link-abbreviated" href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a> wrote:<br>
</p>
<blockquote cite="mid:4D5A18D1.8000101@ayendesigns.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<p style="margin-bottom: 0cm; margin-top: 0pt;">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.</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">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.</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">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. </p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">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?<br>
</p>
<div class="moz-signature">-- <br>
<p style="margin-bottom: 0in;"><img
src="cid:part1.08060001.03070200@ayendesigns.com"
name="ayenlogo" valign="top" vspace="30" align="LEFT"
border="0"> <font style="font-size: 8pt;" size="1">Ayen
Designs </font><font face="Times New Roman, serif"><font
style="font-size: 8pt;" size="1"> <br>
388 Bullsboro Drive #105 · Newnan, Georgia 30263</font></font>
<br>
<font face="Times New Roman, serif"><font style="font-size:
8pt;" size="1"> 404-271-9734<br>
Web:<a moz-do-not-send="true"
href="http://ayendesigns.com">ayendesigns.com</a><br>
Blog: <a moz-do-not-send="true"
href="http://theaccidentalcoder.com">theAccidentalCoder.com</a><br>
Drupal: <a moz-do-not-send="true"
href="http://drupal.org/user/367108">j. ayen green</a>
(367108)<br>
IRQ: j_ayen_green<br>
IM (Yahoo) baalwww (MSN) <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:baalwww@yahoo.com">baalwww@yahoo.com</a><br>
Skype: ayendesigns | Facebook: ayendesigns | Twitter:
@ayendesigns <br>
<br>
Ayen Designs is the computer services division of <img
src="cid:part2.09090706.00010102@ayendesigns.com"
name="acmelogo" align="absmiddle"></font></font></p>
</div>
</blockquote>
</body>
</html>