Outputting user select attribute

Permalink
Hi Guys,
I am having real trouble pulling out a user select attribute. Its all setup. Normnally for collections i use the follwoing:

<?php  
Loader::model("attribute/categories/collection");
$akct = CollectionAttributeKey::getByHandle('property_live');
if (is_object($page)) {
$tcvalue = $page->getAttributeValueObject($akct);
}
?>
<?php  echo $akct->render('form', $tcvalue, true);?>


I have changed collection to user, but it doesnt work. Can any one help please..?

 
JohntheFish replied on at Permalink Reply
JohntheFish
The problem with the core user selector is that there can only be one of them. If there is even a hint of another on a page, visible or hidden, it pukes.

We have had at least 2 attempts to submit such attributes as addons to the marketplace, both have run into issues and the developers have withdrawn them.
obaudains replied on at Permalink Reply
Thanks for the response john, sorry I didn't explain very well. It's not a select box list of system users. It's a user attribute that we added which is a select box. The attribute is called gender and has 2 options in the drop down ...male & female.

I have a single page setup in the profile and want to be able to output this gender select box in a form. I can't see any documentation on how to do this for user attributes... Only page attributes. Are you able to point me in the right direction please..?