hi!
ok, sorry for asking but seriously, i don't know. it's probably a stupid thing.

i want a directory for single user based on a text field (alphanumeric code without space)

my code:

php: return 'users/'.$user->field_code;

return the creation of folder "Array". well i understand that it get it all wrong. what's php code to get the value?

Comments

michel3’s picture

Issue summary: View changes
michel3’s picture

ok, i did it

the correct code is:

php: return 'users/'.$user->field_code['und'][0]['value'];

thank to me! :)

michel3’s picture

Title: directory with custom field » directory with custom field [solved]
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.