Author Topic

Alessandro Cipriani

Monday 19 July 2004 2:03:43 am

Comment41148

hi paul
thanx a lot for your answers, all very useful
now the things get more complicated:

the 'newly created object' is a user class extended by me, and i'm having some trouble extracting all the attributes i need to work

in the .tpl file i get the attributes i need in this way:

login: $current_user.contentobject.data_map.user_account.content.login
my_attribute: $current_user.contentobject.data_map.my_attribute.content

but in my php file i'm not able to get them!

for the login attribute i tried:

		$dataMap = $currentVersion->dataMap(); 
		$userAccount = $dataMap['user_account'];
		$login=$dataMap->login();

but i get an error
no idea for the other attribute

any hint?

best regards
alessandro