Edit user profile

Vote:
 

Hi,

I want to create Edit User Profile page in the website. Should this page be created using xForm or it should be created in the view.

Also how can I get the localized country list in the form.

Thanks
Pankaj

#119092
Mar 20, 2015 14:25
Vote:
 

Not sure what you mean by 'created in the view', but I would skip xforms and use other built-in properties.
User profile is not culture specific (like news / article pages for example), so you don't need to use [CultureSpecific] attribute on properties.

What do you mean by 'localized country list in the form' ?

#119101
Mar 20, 2015 16:28
Vote:
 

By 'created in the view' I mean defining the form such as

<form action="#" id="edit-profile-form">
            <label for="firstname">Firstname:</label>
            <input type="text" name="firstname" id="firstname" />
            <br />
            <label for="lastname">Lastname:</label>
            <input type="text" name="lastname" id="lastname" />
            <br />
            <label for="email">Email:</label>
            <input type="text" name="email" id="email" />
            <br />
            <input type="submit"/>
</form

Now in the above form I have dropdown list for the country. How can I load different values in the list based on the language user is browsing the site in.

#119102
Mar 20, 2015 16:33
Vote:
 

You could use resource files / xml files / hard-coded dictionary that contains localized country names.
On form submit, you only need to send the country code which you'll save in EPi.

#119104
Mar 20, 2015 16:47
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.