ASPX templates
Version 5.x > ASPX templates > Using Alternate Forms in ASPX Templates View modes: 
User avatar
Member
Member
ed_giardina-jackmorton - 5/6/2010 10:57:23 AM
   
Using Alternate Forms in ASPX Templates
So I am using the User table in Kentico to keep track of registered users to my site. However, I want users to be able to update a set of their information (their 'profile'). I was using
<cms:MyProfile ID="myProfile" runat="server" Visible="true" StopProcessing="true" />

The problem with this control is it displays ALL fields. I want to restrict the fields the users can edit (however, a full kentico administrator needs to be able to edit all fields through the CMS Desk).... so what it looks like I need is an alternate form. How do I use an alternate form? can I point a cms:DataForm tag to an alternate form / transformation?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 5/7/2010 4:00:08 AM
   
RE:Using Alternate Forms in ASPX Templates
Hi,

"My profile" control (/CMSModules/Membership/Controls/MyProfile.ascx) has property called “AlternativeFormName“ so you can create separate alternative form for administrator (in CMS Site Manager -> Development -> System tables -> edit CMS.User table -> Alternative forms ) and separate for normal users and use the alternative form for this control according to current user information.

Best regards,
Miroslav Remias.