Hi Cory,<div><br></div><div>Thanks. I think we were writing at the same time. </div><div><br></div><div>Unserializing the $output won't work, because the $output comes with some other stuff, like html.</div><div><br></div>
<div>What works is this:</div><div><br></div><div><span class="Apple-style-span" style="font-size: 13px; border-collapse: collapse; "><div style="font-family: arial, sans-serif; "><font face="'courier new', monospace">$data = unserialize($row->{$field->field_alias});</font></div>
<div style="font-family: arial, sans-serif; "><font face="'courier new', monospace">print $data['attributes']['Attending'][0];</font></div><div style="font-family: arial, sans-serif; "><font face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">To all, I apologize for not quoting the array keys in my previous "I got it" post.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">But thank you.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I've posted an issue for documentation at the Views queue, suggesting a change in the explanatory text of views-view-field.tpl.php to be explicit that the snippet is literal.</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">You can +1 or make alternative suggestions at: <a href="http://drupal.org/node/901088">http://drupal.org/node/901088</a></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Shai</font></div></span><br><div class="gmail_quote">On Thu, Sep 2, 2010 at 9:30 PM, Cory Gilliam <span dir="ltr"><<a href="mailto:imaaxa@gmail.com">imaaxa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>The data you are trying to get is inside an array that is inside an array.<div class="im"><br><br><span style="color:rgb(34, 34, 34)"><font face="'courier new', monospace">Array(<br>
[kit_id] => 570<br> [module] => uc_product_kit<br>
[attributes] => Array(<br> [Attending] => Array(<br> [0] => Jane Doe, John Doe<br> )<br> [Note] => Array(<br> [0] => We are friends of Eric Smith and Sandy Smith<br>
)<br> )<br> [shippable] => 0<br> [unique_id] => 4c7d632a8090c7.95333579<br>)</font></span><br><br></div>You need to add the name of the array that this array is in.<br><br><font color="#222222"><font face="arial, helvetica, sans-serif"><div>
<font face="'courier new', monospace">$data = unserialize($output);</font></div>
<div><font face="'courier new', monospace">print $data</font><span style="color:rgb(34, 34, 34)"><font face="'courier new', monospace">['attributes']</font></span><font face="'courier new', monospace">['Attending'][0];<br>
<br>Little rusty at this. Hope that helps.<br>Cory<br></font></div></font></font><br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>