I'm building a site with a account page in Umbraco 7.4.3.
I'm using members with custom properties. The createmember page is working well. I'm using the "Member can edit" to enable the members to fill in the data I need.
I'm stuck in the following scenario:
I want to display the members data on their account page. At first it has to be readonly from the Ipublished member for speed. I want to display the username witch I can acces by loginStatusModel.Name and than I want to loop through all the properties witch are flagged as "Show member on profile"
The next step is for the user to be able to click on a edit button to show prefilled inputs with their data to update the member.
I can find a lot of pre umbraco 7 snippets but they all don't seem to work. So I'm stuck right now. I can't find the right documentation for this problem either....
That should give you a good headstart on what you're trying to do . The only incomplete bit is changing the user's email address - you'll need to add a new validation (otherwise users could sign up with a valid email address and then change it to a non-validated one).
Are you using Visual Studio? The solution I've provided requires you to build this to DLL - Umbraco won't check for traditional MVC folders at runtime.
If you're doing a more simple Umbaco instance then you might be able to use that code in the App_Code folder so it's built at runtime but I think you might need to change a few things (search for Umbraco Controller plugin).
If you're setting out with a new project then I'd start using VS now. If you've already started then it's possible to create a new VS solution, nuget Umbraco in, then edit your webconfig to point this at your DB and copy your views in.
You'll need to create the corresponding doc types in the blog post.
Copy the files in - ensure they are included in the solution and build!
If you're going to use some existing doctypes (or rename them) which already have templates then omit the templates from the /Views/ folder (but include the /Views/Partials/).
I've encountered a problem using your partial views in my template.
I get the following error:
Compiler Error Message: CS0246: The type or namespace name 'UmbracoMembers' could not be found (are you missing a using directive or an assembly reference?)
public class _Page_Views_Partials_Webwonders_Account_MemberLogin_cshtml : System.Web.Mvc.WebViewPage<UmbracoMembers.Models.MemberLoginModel> {
System.InvalidOperationException: No route in the route table matches the supplied values.
@section mainContent{
@Html.Action("MemberLoginRenderForm", "MemberLoginSurface")
}
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberResetPasswordModel.cs 7 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 9 Active
Error CS0246 The type or namespace name 'SurfaceController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 15 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 17 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 18 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 19 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 32 Active
Error CS0246 The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 33 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 34 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberEditProfileSurfaceController.cs 35 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 9 Active
Error CS0246 The type or namespace name 'SurfaceController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 15 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 21 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 22 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 23 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 52 Active
Error CS0246 The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 53 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 54 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLoginSurfaceController.cs 55 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLogoutController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLogoutController.cs 9 Active
Error CS0246 The type or namespace name 'RenderMvcController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLogoutController.cs 15 Active
Error CS0246 The type or namespace name 'HttpGet' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLogoutController.cs 18 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberLogoutController.cs 19 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 9 Active
Error CS0246 The type or namespace name 'SurfaceController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 16 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 18 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 19 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 20 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 25 Active
Error CS0246 The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 26 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 27 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberRegisterSurfaceController.cs 28 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 9 Active
Error CS0246 The type or namespace name 'SurfaceController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 16 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 18 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 19 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 20 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 29 Active
Error CS0246 The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 30 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 31 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 32 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 83 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 84 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 85 Active
Error CS0246 The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 118 Active
Error CS0246 The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 119 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 120 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberResetPasswordSurfaceController.cs 121 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 9 Active
Error CS0246 The type or namespace name 'SurfaceController' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 15 Active
Error CS0246 The type or namespace name 'ChildActionOnly' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 17 Active
Error CS0246 The type or namespace name 'HttpGet' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 18 Active
Error CS0246 The type or namespace name 'ActionName' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 19 Active
Error CS0246 The type or namespace name 'ActionResult' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Controllers\Account\MemberValidateSurfaceController.cs 20 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 8 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 9 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 10 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\EmailHelper.cs 11 Active
Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 5 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 8 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 9 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Helpers\MemberHelper.cs 10 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberEditProfileModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberEditProfileModel.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberLoginModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberLoginModel.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberRegisterModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberRegisterModel.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberResetPasswordModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberResetPasswordSetModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberResetPasswordSetModel.cs 7 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberValidateModel.cs 6 Active
Error CS0246 The type or namespace name 'Umbraco' could not be found (are you missing a using directive or an assembly reference?) lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\Models\Account\MemberValidateModel.cs 7 Active
Warning Source file 'obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs' specified multiple times lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\CSC
Warning Source file 'obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs' specified multiple times lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\CSC
Warning Source file 'obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs' specified multiple times lescoyotesdeparis_webshop C:\Users\Frans\Documents\Visual Studio 2015\Projects\lescoyotesdeparis_webshop\lescoyotesdeparis_webshop\CSC
That is suggesting Umbraco is not included in the solution... unless you've done something very wrong I'd close and restart VS, clean the solution and rebuild.
Then edit the webconfig to point the connection string at a copy of your DB and it should see it as an upgrade (I think!). Run through the process and you should be good to go - if you get any exceptions these are usually package related and you just need to find the relevant config files / DLLs and copy them in.
Obviously take backups before you try this - this is just the way I've done it - there might be some better suggestions from others in the Community!
Display show on profile member properties
Hi,
I'm building a site with a account page in Umbraco 7.4.3.
I'm using members with custom properties. The createmember page is working well. I'm using the "Member can edit" to enable the members to fill in the data I need.
I'm stuck in the following scenario:
I want to display the members data on their account page. At first it has to be readonly from the Ipublished member for speed. I want to display the username witch I can acces by
loginStatusModel.Name
and than I want to loop through all the properties witch are flagged as "Show member on profile"The next step is for the user to be able to click on a edit button to show prefilled inputs with their data to update the member.
I can find a lot of pre umbraco 7 snippets but they all don't seem to work. So I'm stuck right now. I can't find the right documentation for this problem either....
Thanks
I've settled with getting the properties on the page with:
Now I need a way to edit the profile properties.
I'd like to place a button on the account page witch gets you to the edit account page.
On that page I'd like a form with:
When a value changed the member needs to be updated.
The questions I have:
This is a solution I see on many sites, so I can't believe nobody has done it in Umbraco :P
Hi,
I've blogged about exactly this! But it is using Custom Controllers I'm afraid.
You could hack something in razor I suppose but it would get messy quickly dealing with posts and if users are logged in etc.
Siempre Solutions Blog - Full Member MVC Solution
That should give you a good headstart on what you're trying to do . The only incomplete bit is changing the user's email address - you'll need to add a new validation (otherwise users could sign up with a valid email address and then change it to a non-validated one).
HTH Steve
UPDATED: Fixed the link
Hi Steve,
Thanks for the quick reply. I'll look in to it.
For future reference the correct link:
I'm new to using controllers this way so just to be sure,
Do I have to put the controllers, helpers and models in de app_code folder? The views can be in the views folder right?
Thanks a lot. This looks like a solid solution.
Are you using Visual Studio? The solution I've provided requires you to build this to DLL - Umbraco won't check for traditional MVC folders at runtime.
If you're doing a more simple Umbaco instance then you might be able to use that code in the App_Code folder so it's built at runtime but I think you might need to change a few things (search for Umbraco Controller plugin).
If you're setting out with a new project then I'd start using VS now. If you've already started then it's possible to create a new VS solution, nuget Umbraco in, then edit your webconfig to point this at your DB and copy your views in.
HTH
Steve
I'm using visual studio. So drag and drop into the project and build?
You'll need to create the corresponding doc types in the blog post.
Copy the files in - ensure they are included in the solution and build! If you're going to use some existing doctypes (or rename them) which already have templates then omit the templates from the /Views/ folder (but include the /Views/Partials/).
Thanks. The views shouldn't be a problem. The controllers is the new part. I'll report back if it worked out ok.
I've encountered a problem using your partial views in my template.
I get the following error:
My teplate looks like this:
If I use the
@Html.Action
gives me this error:What am I missing here?
Have you added these files in Visual Studio - ensured they are included in the project and rebuilt the solution?
Steve
Oh, I feel stupid... I forgot to include them.
Now I get 83 build errors...
That is suggesting Umbraco is not included in the solution... unless you've done something very wrong I'd close and restart VS, clean the solution and rebuild.
I take it you used nuget to install Umbraco?
We took a existing site and pulled it in Visual Studio. So I think that's the problem. Is there a way to fix that?
Do you mean an existing site in Umbraco?
I've done this before in the past I think you can just create a new solution and nuget a fresh copy of Umbraco in using the guide: https://our.umbraco.org/documentation/getting-started/setup/install/install-umbraco-with-nuget
Then copy in the following :
Then edit the webconfig to point the connection string at a copy of your DB and it should see it as an upgrade (I think!). Run through the process and you should be good to go - if you get any exceptions these are usually package related and you just need to find the relevant config files / DLLs and copy them in.
Obviously take backups before you try this - this is just the way I've done it - there might be some better suggestions from others in the Community!
HTH
Steve
Steve thank you so much!!
I've learned a lot this week. Your solution works like a charm.
Thanks for your patience.
Hi,
No problem whatsoever! Good luck with your project!
Steve
is working on a reply...