Drupal Pro Development is a must have.<br><a href="http://www.drupalbook.com/">http://www.drupalbook.com/</a><br><br><div class="gmail_quote">On Fri, May 7, 2010 at 5:30 PM, Xavier Bestel <span dir="ltr"><<a href="mailto:xavier.bestel@free.fr">xavier.bestel@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On Fri, 2010-05-07 at 16:24 +0200, Xavier Bestel wrote:<br>
> Hi again,<br>
><br>
> So I've build this CCK node with various fields, some of them are<br>
> userreferences. I want to access some values from PHP (in a custom CCK<br>
> computedfield), but it doesn't seem to work:<br>
><br>
> - I can access e.g. the date from my field_date using<br>
> $node->field_date[0]['value'];<br>
><br>
> - If I try to access a user from field_proprio, I get nothing. I tried<br>
> $node->field_proprio[0]['value'] and<br>
> $node->field_proprio_uid[0]['value'] but none of them work.<br>
><br>
> Could anyone tell me how I can access a user, or which bit of the<br>
> copious Drupal doc I should look at ?<br>
<br>
Sorry for wasting your time reading these two emails, I finally googled<br>
successfully for an answer.<br>
For those interested: $node->field_proprio[0]['uid']<br>
<br>
I'm sure there are many other veery interesting things in Drupal. As I<br>
have a little problem to read big docs on-screen, does anyone have a<br>
good book recommandation for people who know want to do advanced things<br>
(like module creation) with Drupal ?<br>
<br>
Thanks,<br>
<br>
Xav<br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Damien Cirotteau<br>Rue89 -- <a href="http://www.rue89.com">http://www.rue89.com</a><br>** Nouvelle adresse **<br>24 rue de l'Est<br>75020 Paris<br>** Nouveau téléphone **<br>
+33 (0)1 71 18 20 11<br>====================================<br>Pour soutenir Rue89 : <a href="http://mur.rue89.com/">http://mur.rue89.com/</a><br>====================================<br>