Edit profile page to a custom form

Hi,

I'm trying to make a new edit profile page.

I put all the necessary fields in concrete. But Concrete just makes a long list of all the formfield that I added. I want some designing in the page, maybe divide it over 2 pages...

So i made a single page with the formfields in the order I want, but how do I get the values from concrete for these formfields?

In the edit profile page of Concrete ther is the following code:
$attribs = UserAttributeKey::getEditableInProfileList(); 
if(is_array($attribs) && count($attribs)){      
 $af = Loader::helper('form/attribute');
 $af->setAttributeObject($ui);
 foreach($attribs as $ak) {
  print '<div class="ccm-profile-attribute">';
  print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile());
  print '</div>';
 }
}


The function $af->display() shows the complete form...and i don't think I want that?!

Can anybody help me?

Regards,

Corretje
corretje
View Replies:
c5studio replied on at Reply
That only shows the attributes that are set in the dashboard, under 'Users and Groups' and then 'User Attributes.' If you add more attributes they should show up there, and if you remove them they wont show up anymore.
maartenfb replied on at Reply
maartenfb
This call seems to return div tags.
print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile());

I also just want the plain string in order to do my own style.
Is there a code snippet example that returns String only?
Thanks.
pixelfish replied on at Reply
pixelfish
Hi,

I am also currently playing with this. It would be great to have more flexibility with these attributes. The billing and shipping address call the same form, is there any way to have two separate forms so i can style them separately?

Also if i need to move the 'email address' attribute between the name and address attributes, currently i do not have control to do that as the profile/register page just calls all User Attributes.