Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Security > Allow users to edit their profile?

Allow users to edit their profile?

  • Simon avatar

    Posted on Aug 7, 2009 (permalink)

    Hi,

    I've just started playing with Sitefinity, I've completed most of our proof of concept work, but one thing that not jumping out at me is user managment.

    I want users to be able to create there own accounts and edit these details. The "My Profile" page seems to allow this, i've been able to add my own properties and it all looks fine.

    But in order for a user to see this they need the cmsAccess permission, which allows them to see way to much of the site finity internals. Also I can't find a create user page that forces the capture of some/all of this additional information.

    Thanks 
        Simon

    Reply

  • Nikolai Nikolai admin's avatar

    Posted on Aug 10, 2009 (permalink)

    Hi Simon,

    You can use - ManageProfile and CreateUserWizard public controls, located under "Login" section in the controls toolbox, to control your user without giving them access to the admin section. You can also extend these controls to provide any additional functionality you might need.

    Hope this helps.

    All the best,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.

    Reply

  • Posted on Aug 20, 2009 (permalink)

    Is there a way to use the “myprofile” page in sitefinity without creating a new page from scratch for users to be able to edit their information and picture without admin CMS?  I’ve created a new master page and trying to use the myprofile.aspx page in it but getting may errors.  Is there a simpler way?  Under login in the visual studio 2008 toolbox there is a CreateUserWizard tool but I don’t see a ManageProfile tool.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 20, 2009 (permalink)

    Hi Adisa,

    Manage profile control is located under Sitefinity's toolbox, Login section. There you can find Manage Profile control with simple interface. I suggest that you should create your own custom control.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Aug 25, 2009 (permalink)

    The manage profile control that is located under Sitefinity's toolbox only has a input for first name and last name and none of the options in the admin CMS profile manager.  I don't understand how that works or how users will be able to update their profile with this control.  Please advise.

    Adisa

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 26, 2009 (permalink)

    Hello Adisa,

    You can create a custom template and set its path to EditTemplateUrl property of the control. Below is a sample template:

    <asp:TextBox ID="FirstName" runat="server" /> 
    <asp:TextBox ID="LastName" runat="server" /> 
    <asp:TextBox ID="Position" runat="server" /> 
    <asp:Button ID="submitButton" runat="server" Text="test" /> 

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

  • Posted on Oct 28, 2009 (permalink)

    Hi Telerik support,

    User Details Section on MyProfile Page,
    where does it read and write the Firstname and Lastname ?
    which table in the database ?

    Regards

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Oct 28, 2009 (permalink)

    Hello homepagedigital,

    Please take a look at [telerik_UserMetaInfo] table of your project database.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Posted on Jun 18, 2010 (permalink)

    Must say I'm a little disappointed that no real example is given or that there is no clear cut toolbox-item with its own template possibities, while this is such a basic functionality. Finding a working example is quite difficult.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Jun 21, 2010 (permalink)

    Hi Peter Huisman,

    By default the control generates its own template only with two profile fields - FirstName and LastName. If you want to extend the template you should create a custom template and map it through InsertTemplateUrl( this is for inserting data - Insert mode) or EditTemplateUrl( this is for editing data - Edit mode)

    So you could create a simple template that has the same TextBox controls as you have for the Profile data. For instance - FirstName. LastName, Company, JobPosition. The IDs of the text boxes should be the same as the name of your Profile properties.
    You can set your template when you open ManageProfile control in Edit mode, set Mode enum to Edit and EditTemplateUrl to your template path. Here the important thing is that you should have a Button control with ID="Submit"

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Posted on Jun 22, 2010 (permalink)

    Since I'm wrestling with this, I can help a little.  You already have at least one master page template set up.  Creating a new template and them is another topic (which I may post my experiences when I'm done).

    When creating a page in SiteFinity, the first step is always to choose the Template.  Then you drag and drop controls and fill in the content.  To replace the ManageProfile control you will be using the "Upload a control" and "Add" buttons in the lower right corner.

    First, in VS, you will be creating a "Web User Control", which is an .ASCX and not an .ASPX.  I am using VS2008 so if you're using 2005 or 2010, there may be some differences.

    I'm creating one a little later today for my project.  I'll post the code in the code area and on this post.  So there should be a concrete example in a couple hours, ok?

    Reply

  • Johar Iqbal avatar

    Posted on Nov 4, 2010 (permalink)

    Hi,

    I also need a working example, waiting for the code.

    thanks

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 4, 2010 (permalink)

    Hi Johar ,

    You will find a sample code in this post.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • samuel avatar

    Posted on Nov 11, 2010 (permalink)

    Hi , I am Samuel And new here .. I glad to join this forum .. I would like to know How I manage my profile ?? Help me please Because i will add my personal information and update my profile .. Thanks for help in advance ..  

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 11, 2010 (permalink)

    Hi samuel,

    Is there any particular issue that you have, so I could be more concrete?

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • samuel avatar

    Posted on Nov 15, 2010 (permalink)

    Hi Admin,
                  Yeah i have particular problem this is for me because i am new here and not for you i hope .. I would like to change my photo so what i will do ?? Thanks ....

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 15, 2010 (permalink)

    Hello samuel,

    Go to Administration >> Users, select a user for editing and click "More options". Form there you can change your picture. If you work programmatically you can use GetPropertyValue and SetPropertyValue for Photo_Hidden and Photo property fields.

    You can use ManageProfile class and call SetProfileProperties public method. To add an image you can use ButtonSelector control. For a sample implementation you can check \Sitefinity\Admin\CmsAdmin\Users.aspx and its code behind.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Security > Allow users to edit their profile?