By alekm on
I'm using the Content Profile module for custom profiles with CCK fields.
Users are allowed to create certain content which has identical CCK fields to that of the CCK profile.
When a user is creating content, I'd like some of the CCK fields to have the same default value as the profile CCK fields.
I've been looking at the Default Value -> PHP area but so far have had no luck.
Has anyone done anything like this?
Thank you very much in advance,
NB
Comments
I've been trying to do
I've been trying to do something like this:
However, no luck... not sure what I'm missing?
Eureka! global $user;$myNode
Eureka!
My CCK profiles have the auto-title module that fills them with the author UID.
This script loads the current user, loads the content profile node using the current user UID, and then prints out the appropriate field.