Author Topic

Paul Forsyth

Monday 19 July 2004 5:43:26 am

Comment41155

Yip.

For this you need to look at the datatype definitions in 'kernel/classes/datatypes'. Specifically 'kernel/classes/datatypes/ezuser/ezusertype.php'.

You'll noice on line 265 the function

function &objectAttributeContent( &$contentObjectAttribute )

This returns the content you tried earlier. In this example it creates a ezuser from the user id and returns it, so now look in 'kernel/classes/datatypes/ezuser/ezuser.php' to see what to return. You'll see things in the definition such as 'login', 'email' and others. You can access these directly in your template by '$user.login', for example.

So, in your case check the contentclass_attribute_identifier for your object and if its an ezuser looking inside the object for your users details instead of printing the object itself.

I've said a little more here than i need to but you need to start looking at the datatype classes for yourself to understand how to use them. It takes a while for it to click - it did for me.

Hope this helps.

paul

--
http://www.visionwt.com