ActiveTopics Tue, 31 May 2016 07:41:28 +00:00 umbraco Latests topics from the forum on en Preview not working when you update Culture And Hostnames For the project that I am working on we need to set the Culture And Hostnames to a specific domain: (no probs there), but accessing the CMS is needed to be done on another subdomain:

90% of the time when editing content and testing the page in Preview mode I get the following error in the developer console:

Uncaught SecurityError: Blocked a frame with origin "" from accessing a frame with origin "". Protocols, domains, and ports must match

Does anyone know how to get the preview to look on the same domain as rather than using the choosen Culture And Hostname?

Or is there another work around?

Hamish Tue, 31 May 2016 06:31:06 +00:00
Developer section does not show in backoffice Hi.

I use Umbraco 7.3.7. Developer section is shown in backoffice, but when I clicked on it, backoffice is going out and login page is appeared!

enter image description here

Other sections work correcly, but developer not work. When I clicked on developer section, backoffice is going out and login page is appeared:

enter image description here

What is that problem? How can I solve it?

With thanks.

Hassan Tue, 31 May 2016 05:56:47 +00:00
How Id of pages do not change in package of content? Hi.

I created a package from my old project, but the Id of pages is changed in package. So templates do not find pages.

I want to Id of pages do not change in packaging system. Is there any way to solve it?

With thanks.

Hassan Tue, 31 May 2016 04:26:51 +00:00
Show user id and user name in front end Is it possible to show whether a user (not member) is logged in and if so, their id and user name in the front end, ie in a template or partial view?


Tim C Tue, 31 May 2016 03:42:34 +00:00
Copy Form - Duplicating Form GUID I created a form and copied it. It ended up breaking the UI when it tries to call http://localhost/umbraco/backoffice/UmbracoForms/FormSecurity/GetByUserId?userId=0 when viewing any form. The call returns:

Sequence contains more than one matching element
 at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at Umbraco.Forms.Web.Editors.FormSecurityController.GetByUserId(Int32 userId) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()

Looking into it I see that the UFUserFormSecurity table now has a row with a duplicate guid.

Ids 6 and 7 are the same

The duplicated row seems to be extra and not needed (it is just adding the same data twice)

Manually deleting the one with the Id of 7 in the DB fixes the error.

TheSharpieOne Mon, 30 May 2016 19:23:10 +00:00
Fanoe starter kit - make "hamburger" toggle nav menu happen for all screen sizes, not just mobile The Fanoe starter kit has a "hamburger" menu which will toggle a list of nav items, in mobile screen sizes. However on desktop sizes, the nav bar is displayed in the header.

What's the best/easiest way to change it (in the CSS?) so that the "hamburger" navigation is used on all screen sizes? I don't want "nav" text in the header at all, unless the user clicks the "toggle" to show all the menu options. I want a brand logo (which I have), the hamburger menu which will then pull out all the lower level pages ("About", "Blog" etc in the default package) when activated.


Anna Mon, 30 May 2016 16:20:57 +00:00
Unsubscribe from newsletter Hi, I'm using umbraco newsletter, and when a receiver wants to unsubscribe from the subscription through the received email, I want to redirect them to a SurfaceController Action with parameters => the receiver email and subscription id. i.e. Every email has a unsubscribe button, and i want to pass the subscriber email and subscriber id, and unsubscribe the receiver from the mailing list. How can I do that? I want to unsubscribe them in the most easy and out of the box way, please share other opinions. I've searched the net and the forum but I can't find how to manage unsubscription.

Krum Mon, 30 May 2016 15:56:13 +00:00
Getting Started - Html.Action Hello,

I'm finding myself getting frustrated with Merchello, I've tried following the getting started on I have a project where I have installed Merchello package, (but not the Bazaar store)

I'm now looking to get the main pages working on the front-end, let's say the Basket Page - I've coded the "Add to Basket" functionality on the product myself for now, but I don't want to do this for the basket, the checkout, the payment etc.

Looking at the sourcecode for FastTrack.UI there is a View called Basket.cshtml which has this code:

@if (CurrentCustomer.Basket().Items.Any())
    @Html.Action("BasketForm", "Basket", new { area = "Merchello" })

The problem I'm having is any time I try to use one of the @Html.Action I get an error saying the route doesn't exist.... I can't see any controllers in FastTrack for basket, but I can find "BasketForm" in the source code under Merchello.Web.Controllers.BasketControllerBase.

I can't seem to get any of the Bazaar Store stuff to work either, I copied a bunch of Models, Controllers and Factories into my own library, but these Models seem incompatible when trying to load the product page, which is of type:


Also, I don't have any reference to where most of the base controllers are, in Merchello.Web.Store or Merchello.Web.Controllers.

The source out of GitHub doesn't "just compile" either, and I didn't want to plough hours into finding out why.

uCommerce, although limited in what it could do, didn't seem this complicated to get running.

Do I just need to bite the bullet and install the bazaar store (I wanted a clean project) or am I missing something else really obvious.


Ian Smedley Mon, 30 May 2016 15:55:33 +00:00
uBlogsy landing page and home page widget empty after publish Hi

I've created a VS 2015 solution and added Umbraco 7.4.1 using NuGet. I then installed uBlogsy, added content as posts and done some CSS changes. I'm using the uBlogsy type as my home page.

When running it in Visual Studio (IIS express) it works as expected. When deploying to IIS either using the Publish tool or uncompiled the Blog landing page as well as the home screen widget are disabled.

When viewing a post from the administrator screens (Preview) the post comes up without pagenation and related posts.

So far I've checked: - all files are included in the solution and being copied or complied - there are no errors in the Umbraco log folder - there are no errors in Windows event log - front end and admin screens work without any issue - all the content is available (the Content tree in the admin screen is exactly as per the one in IIS Express / VS)

Not very well versed MVC, I would appreciate any ideas on how to approach the issue

Thanks, HW

HW Mon, 30 May 2016 15:35:18 +00:00
ContentService Publishing on first instance fire Hi guys,

So I want to fire a method on the publish event, only when the content being published has never been published before so that if I were to ever make edits this wouldn't fire off every time.

Any idea's on what I can use to restrict this??


Michael Biggs Mon, 30 May 2016 14:35:35 +00:00
Redirection when umbraco is not conneced to the database Connectionstring Hi,

Is it possible to do a redirection to an error page when umbraco isn't connected to the database in the Web.Config connectionString .

if its possible, Where would i do this redirection in my umbraco application . Thank you for helping out

Akeem Mon, 30 May 2016 14:22:18 +00:00
Creating dynamic tabs Greetings,

I'm still rather new to Umbraco and atm. I'm kinda stuck.

I wish to make a frontpage with 4 divs containing An icon and a description like the following:

enter image description here

But I wish not to make them as a table in an editor and I have a feeling it's bad to make 4 tabs on my Document Type containing the icon and description.

Is there a good way to make this happen that I don't know of?


Mike Bertelsen Mon, 30 May 2016 12:54:44 +00:00
How to get language for a particular domain Hi

I wanted to get the language selected for a particular url by user. For example I have set 4 urls for a page

  1. If is open it should have en-GB.
  2. if is open it should have de-DE.

enter image description here

Manish Mon, 30 May 2016 09:41:32 +00:00
Get UmbracoApplicationUrl from ApplicationContext Hi

I need the current Url where the website is running. I saw the UmbracoApplicationUrl in ApplicationContext but this property is internal.

The url is needed to index nodes with examine. The problem is the HttpContext and UmbracoContext are null.

So I wanted to ask if there is another way?

Tobias Lopez Mon, 30 May 2016 09:24:14 +00:00
Umbraco relative path handling with Domain changes I have designed my pages with

  1. File Upload images
  2. Media images
  3. Backend images
  4. RTE Images

    in my localhost:50383/ i have some images in RTE that has src="/images/1.png" works perfectly

now i want to host it in test server localhost/UmbracoTest/ it does not help with src="/images/1.png",

changing with src="images/1.png" converts it to /UmbracoTest/images/1.png working, will it work for live server for ex is live server and want to host it with


so what is best practice to overcome this problem in terms of relative urls???????

Note: Files are not deleting when domain changes its virtual dir level by file upload control and loader continues after error message i am performing db backup restore to upload it in test and live server

Vishmay Mon, 30 May 2016 08:55:51 +00:00
Server side form validation in umbraco+mvc Hi,

I am trying to validate the form on client side(using jQuery) as well as on server side. It works fine on client side but server side validation is not working.

My model is:

public class CustomModel


    public int Id { get; set; }

    public string Type { get; set; }

    public string Amount { get; set; }

    public string Time { get; set; }

    public string Gender { get; set; }

    public string FirstName { get; set; }
    public string LastName { get; set; }



public class CustomSurfaceController : SurfaceController

    public void Index(CustomModel model)
        var db = ApplicationContext.Current.DatabaseContext.Database;

        if (ModelState.IsValid)

View Page:

 @using (Html.BeginUmbracoForm("Index", "CustomSurface", null, new { id = "defaultForm", @class = "form-horizontal" }))
                     <label>@Html.RadioButtonFor(x => Model.Type, @oneOff, new { @class = "regular-radio" })<span class="radiobtn"></span>@oneOff</label>
                     <label>@Html.RadioButtonFor(x => Model.Type, "Periodiek", new { @checked = true, @class = "regular-radio" })<span class="radiobtn"></span>@periodic</label>
                      @Html.TextBoxFor(x => Model.Amount, new { id = "txtAmt", @class = "form-control", @placeholder = "Amount" })        
                      <label>@Html.RadioButtonFor(x => Model.Gender, "Mr", new { @checked = true, @class = "regular-radio" })<span class="radiobtn"></span>Mr</label>
                      <label>@Html.RadioButtonFor(x => Model.Gender, "Mrs", new { @class = "regular-radio" })<span class="radiobtn"></span>Mrs</label>
                      @Html.TextBoxFor(x => Model.FirstName, new { @placeholder = "First Name" + "*", @class = "form-control" })
                      @Html.TextBoxFor(x => Model.LastName, new { @placeholder = "Last Name" + "*", @class = "form-control" })
                      <button type="submit" name="submitButton">Submit</button>


What should I have to do? So, that server side validation also works.

Thanks in advance.

Sabin Regmi Mon, 30 May 2016 08:37:13 +00:00
Email Notification In Bcc Hi,

I wonder, why merchello sends email notifications only in CC? For example , i use "Order Confirmation Message" where Email the customer field is checked. When order is created email is sent to customer and admin in CC, but i'd like to add admins email in Bcc , not in CC

progproger Mon, 30 May 2016 08:12:37 +00:00
multi language & share content Hi All,

I'm new to Umbraco world, and currently developing an Umbraco CMS project. According to our clients requirements, we need to implement multi language and shared content functionality into this project.

My current site structure is:

  • content
  • ---Home page
  • ------child page 1
  • ------child page 2
  • ------child page 3
  • ------etc

    1. For multi language functionality:

I saw some suggestion to set up multi language by setting the website tree domain and use the following structure:

  • content
  • EN
  • ---Home page
  • ------child page 1
  • ------child page 2
  • ------child page 3
  • ------etc
  • FR
  • ---Home page
  • ------child page 1
  • ------child page 2
  • ------child page 3
  • ------etc

Our preferred approach would be something like this:

  • content
  • ---Home page (EN, FR, ...)
  • ------child page 1 (EN, FR, ...)
  • ------child page 2 (EN, FR, ...)
  • ------child page 3 (EN, FR, ...)
  • ------etc

The above approach removes the necessity for our client to maintain 3 separate websites when they have to support 3 different languages (or 10 websites if they have to support 10 languages). Would that be possible? Ideally, if there is only one language (i.e. EN) then even if the user had selected a different language, the default would be shown rather than a blank page.

  1. For shared content functionality:

The suggested approach is to create shared content repository:

  • Content
    • ---Home page
    • ------child page 1
    • ------child page 2
    • ------child page 3
    • ---Content repository
    • ------content 1
    • ------content 2
    • ------content 3

My question is I want to let user know where the shared content comes from, i.e. tell the user the content of child page 1 comes from Content repository/content 1. Would this be possible?

Yuxuan Li Mon, 30 May 2016 07:51:57 +00:00
Can not browse media-folders from GridLayout Umbraco 7.4.3 I use Grid-Layout datatype. If I insert RTE in a row and try to insert a image, I can not browse media folders. The folder will be selected, but I can not go into this folder and select images from this.

JoMu Mon, 30 May 2016 06:00:52 +00:00
Can not browse folders in media-picker / media-tree I use Umbraco 7.4.3 and LeBlender in GridLayout datatype. But now I can not browse folders in media-tree (eg pick image from RTE in Grid) From normal RTE without GridLayout I can normal browse media folders.

Is this a LeBlender issue?

JoMu Mon, 30 May 2016 05:51:21 +00:00
Nested Document Type for Multi Tabs Hi All,

I am trying to add doc type inside doc type to display multilevel tabs in umbraco admin .

enter image description here

Somthing like this.. any solution ??

khurram Mon, 30 May 2016 03:51:30 +00:00
If statement in a @for each to change style if a box is ticked Hi,

I have the code below working perfectly, however, I would like to change the design of on of the items if its 'featured' checkbox is ticked. I have the design sorted so that isnt the question, my question is how do I incorporate the the If checkbox is ticked that style like xxxx

@foreach(var item in selection){

<div class="col-sm-6 col-md-3">
    <div class="wow zoomIn" data-wow-duration="400ms" data-wow-delay="0ms">
        <ul class="pricing">
            <li class="plan-header">
                <div class="price-duration">
                    <span class="price">@item.Price
                    <span class="duration">@item.Term
                <div class="plan-name">
            <li><strong>@item.Rooms</strong> Rooms</li>
            <li><strong>@item.Hectares</strong> Hectares</li>
            <li><strong>@item.Walks</strong> Walks</li>
            <li><strong>@item.Miles</strong> Miles</li>
            @if (item.HasValue("Available"))
                <li>Available Now</li>
            <li><strong>@item.EmailAddres</strong> EMAIL ADDRESS</li>
            <li><strong>12 Weeks</strong> Notice</li>
            <div class="element-bottom-30"></div>
            <div class="pricing-button">
                <a href="#">
                    <div class="btn btn-stroke btn-rounded btn-medium">Show Interest</div>



To style differently all I need to do is change the ul to

BEWD Sun, 29 May 2016 13:35:12 +00:00
Using petapoco from my own web service I have created a cs file in App_Code

using System;
using Umbraco.Core;
using Umbraco.Core.Persistence;

namespace utData{

    public class MyDB{
        public string demo(){
             var dataContext = new PetaPoco.Database("umbracoDbDSN");
            return "demo - OK";

in my web service

 public String dbTest()
       string T;
       T = "Latest testing";
       MyDB d = new MyDB();
       T = d.demo();

   return T;

this crashes

CS0246: The type or namespace name 'PetaPoco' could not be found (are you missing a using directive or an assembly reference?)

var dataContext = new PetaPoco.Database("umbracoDbDSN");

What am I missing in utData?

Tim C Sun, 29 May 2016 07:09:26 +00:00
ColorPicker and Input Slider in Custom Section ! Hello, i am trying to use already existig property editors from umbraco in my custom section.

Now my Question, how can i extend my properties from "Option3 of the link above", so i can add

  • Color Picker
  • Input Slider
  • input
  • ...

I dont find anything on the web.

Please help me !! :)

Yves Kircher Sat, 28 May 2016 17:46:14 +00:00
500 Error when Checking out using PayPal TeaCommerce: 3.1.0 Umbraco: 6.2.5

When the payment provider is set to PayPal, when rendering the PaymentForm a 500 error is thrown.

Any ideas much appreciated!

System.MissingMethodException was unhandled by user code
Method not found: 'TeaCommerce.Api.Models.Price TeaCommerce.Api.Models.OrderLine.get_UnitPrice()'.

   at TeaCommerce.PaymentProviders.Classic.PayPal.GenerateHtmlForm(Order order, String teaCommerceContinueUrl, String teaCommerceCancelUrl, String teaCommerceCallBackUrl, String teaCommerceCommunicationUrl, IDictionary`2 settings)
   at TeaCommerce.Api.Web.PaymentProviders.PaymentMethodExtensions.GeneratePaymentForm(PaymentMethod paymentMethod, Order order, String submitInput)
   at TeaCommerce.Api.Web.TeaCommerceHelper.GeneratePaymentForm(Int64 storeId, String submitInput)
   at TeaCommerce.Umbraco.Web.TC.GeneratePaymentForm(Int64 storeId, String submitInput)
   at ASP._Page_Views_CheckoutConfirmation_cshtml.Execute() in c:\Git\Gather and See\Src\\Views\CheckoutConfirmation.cshtml:line 185
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
   at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
   at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
Laurence Gillian Sat, 28 May 2016 13:49:07 +00:00
Display Custom Member Property in Macro Hi Folks,

I'm trying to create a user profile page that displays a users details but not editable. I've managed to create an editable one using the Umbraco EditProfile macro.

How do I render

 @Html.TextBoxFor(m => pharmacyName, new { @class = "form-control", placeholder = "First Name", data_val_required = "The First Name field is required.", data_val = "true" })

As a string of text - not a text box?

Sorry I'm a bit of a newbie on this.

Thanks Darren

Darren Wilson Fri, 27 May 2016 16:25:05 +00:00
Newsletter Studio in load balanced environment Are there any known issues with running Newsletter Studio in a load balanced (Azure) environment?

We ran an upgrade to 7.3.6 with the Azure load balancing, meaning there are a couple of possible URLs (all of which should be in the licence).

Newsletter Studio runs but only in trial mode, and re-applying the .lic file (Umbraco.Licencing.dll is in place). used to force it to work again, but I'm not having much luck with that now.

We're using v2.1.0 of Newsletter Studio at the moment - could that be part of the cause with 7.3.6?


Ed Parry Fri, 27 May 2016 16:15:49 +00:00
Dynamic Collection I want to create a dynamic collection which I can populate based of values in a product. At the moment Im just looking to create a collection which shows 'Available' products, as thats a 'standard' product value.

Im looking a the example one from the online documents, but the example is for invoices (using teh invoice service) and the one Im building is for products.

The Methods in the product service do not marry up very well with the ones int the invoice service, so I cant seem to get what I need. Is there any examples of a Dynamic Product Collection out there?

Tony Fri, 27 May 2016 14:25:24 +00:00
SurfaceController views, not found in views folder

SurfaceController cannot find view in ~/Views/

Question: Why can't my SurfaceController find the View in the Views folder?

    public class TestSurfaceController : Umbraco.Web.Mvc.SurfaceController

    public ActionResult TestSurfaceController()
        return View("Test");


Sweet Candy:

  • My View Is called "Test" and exists in Views Folder
  • If I relocate "Test" to "TestSurface" or "Shared" folder everything is fine

Origin to Frustration Candy

Routing for locally declared controllers All locally declared controllers get routed to:


They do not get routed via an MVC Area so any Views must exist in the following folders:

~/Views/{controllername}/ ~/Views/Shared/ ~/Views/


  • I just want to have my view in ~/Views/, so I can edit the page in Umbraco - content node

If Else Question
Maybe there is a work around, eg
How to Make Umbraco Content > Template show views in subfolder?

Anders Fri, 27 May 2016 11:46:49 +00:00
Use Page Name into form I have created a form using a surface controller. The form is working correctly, but i want to send the page name through the form. Can someone please tell how i should get this ?

Kind regards, Jaco

using Marstrand.Models;

using System; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Web; using System.Web.Mvc; using Umbraco.Web.Mvc;

namespace Marstrand.Controllers { public class ReserveerSurfaceController : SurfaceController { // GET: ReserveerSurface public ActionResult Index() { return PartialView("ReserveerView", new ReserveerViewModel()); }

    public ActionResult HandleFormSubmit(ReserveerViewModel model)
        if (!ModelState.IsValid)
            return CurrentUmbracoPage();

        //Hier komt de code om mail te verzenden
        MailMessage message = new MailMessage();
        message.Subject = "Reservering van uw website";
        message.From = new System.Net.Mail.MailAddress(model.Email, model.VoorNaam + " " + model.AchterNaam);
        message.Body = "Voornaam:  " + model.VoorNaam + "<br />" + "Achternaam:  " + model.AchterNaam + "<br />" + "Email adres:  " + model.Email + "<br />" + "Telefoon:  " +
          model.Telefoon + "<br />" + "Datum:  " + model.date_booking + "<br />" + "Tijd:  " + model.time_booking + "<br />" + "Aantal Volwassenen:  " + model.Volwassenen + "<br />" + "Aantal Kinderen:  " + model.Kinderen;
        message.IsBodyHtml = true;
        SmtpClient smtp = new SmtpClient();

        return RedirectToCurrentUmbracoPage();



jaco Fri, 27 May 2016 10:22:09 +00:00
10 % discount on member logged in Hi

I am trying to implement this snippet from your documentation where all products autoamtically is discounted by 10 % when the member is logged in:

Where do I place this code for this to run? I have tried putting it inside my global.asax and I have tried putting it in a new class file. But there is a lot of red line errors where references cannot be found. enter image description here

Best regards

Thomsen Thu, 26 May 2016 21:26:08 +00:00
How to add "SearchEngineSitemapChangeFreq" and "SearchEngineSitemapPriority" into document type? Hi All,

I'm new to Umbraco, now I'm using Cultiv Search Engine Sitemap (Razor edition) package to generate XML sitemap.

My problem is in this XML sitemap package, I want to instruct Umbraco to re-generate the site map at anytime, and to change the frequency of automatic updates. And I saw a lot of people said for this issue, just need to add the property (SearchEngineSitemapChangeFreq) and (SearchEngineSitemapPriority) into document type, but I checked my data type list, did not found these two properties, thus I dont know how to add this into document type.

So is there anyone can tell me how to add these two properties into document type then can make my XML sitemap auto update and generate sitemap?

Thanks very much!

Yuxuan Li Thu, 26 May 2016 17:51:46 +00:00
Upgrading Umbraco from v4.8 to v7 Hi.

I have been given the task of upgrading an existing website built with Umbraco. Needless to say, as I have not worked with Umbraco previously, there is a lot of ground to cover, but I am getting there slowly reading a lot on the forums and watching :)

To further complicate matters, the existing site is built with a very old version of Umbraco (4.8.0) using both C# and VB.NET, WebForms with master pages and alot of custom usercontrols.

The task includes:

  • Upgrade to the latest version of Umbrco using MVC
  • Apply a responsive design to the entire Webpage
  • Restyle the page entirely
  • Preserving existing content (articles, media and so on)

There are already some challenges:

  • Upgrading to the latest version of Umbraco introduces a need for a lot of refactoring to the existing custom libraries as there have been a lot of API changes since version 4.8.0.
  • Preserving and migrate existing data (the existing site will have to «live» while the new one is being developed, then the production data will need to be migrated somehow).
  • There are no unit tests of any kind, so refactoring the code to comply with the API changes will be a daunting task. Going for the MVC option will of course ease this task as it is easier to test.

I have been experimenting with the existing site creating a backup version of it, and have also tried exporting the Umbraco database upgrade it, do a fresh install of the latest Umbraco on a entirely blank/new Website solution, and then attach the old upgraded database. This seems to work for the Umbraco contents (as long as all the referenced files are being re-created and adapted along the way, but will of course require a lot of work.

As I understand, there are several ways of solving this, but I would be very interested in hearing from the community if you have been given similar tasks or have any recommendations on how to approach this in the best possible way.

Stig Rune Frydenlund Thu, 26 May 2016 08:54:32 +00:00
How would you do it? Sorry for multiple postings, but I am going round in circles and not even sure there is a solution even by tinkering with the API.

In a nutshell, the requirement is (on an intranet) news articles

some of which any user (not member) can edit,

some of which only admins (or some other way of protecting them for selected users) can edit.

The requirement is that anyone can post a comment against any article (even if they can't edit that particular article). (ie similar to a blog),

Viewing articles in the front end should list their comments underneath.

They don't necessarily need to be able to see the protected articles in the CMS as I am using Frontend Editing package so they can view them in the front end and then use the 'create' button to create child documents - ie the comments. Although this doesn't work if they don't have access to edit the article - and thus my problem.

How could this be achieved in Umbraco 7?


Tim C Thu, 26 May 2016 03:47:09 +00:00
How to start on VS2013 Hello to everyone! I am a real newbie in web development and I have to work on Umbraco. I know a little about CMS, so never experienced on WordPress, Joomla! or whatever... :( Now, I would like to start learning about Umbraco using it through Visual Studio (2013 is the latest version I got) and try to learn ASP.NET at the same time. I began working in Umbraco dashboard with a blank install, but after creating a masterpage I got lost. So, I would like to have anything undercontrol with VS2013, understand how to work on it and try to start again.

Anyone could help me to start with a project? >.<

Thank you so much in advance! M.

Melinda Wed, 25 May 2016 13:20:46 +00:00
Using Umbraco as part of a hosting service I was unsure wether to reach out to the community or Umbraco directly, but ultimately figured the people here might have a wider range of experiences.

We're not exactly running a hosting service, but it's the easiest way to describe it. Our company offers point of sales hardware and software to the service industry. An additional service we offer our customers for free is a very basic website. Currently we create a template for each customer and then give them a login so they can add/edit content using a CMS we developed/adapted (I believe it's mostly powered by RadEditor). The biggest problems we have with the CMS is that it hasn't aged well (no options for fluid content unless you fuss with the HTML), and just isn't intuitive for regular people. And if I'm being honest, it's even cumbersome for designers and developers to use too.

Because of this we're wanting to revamp or replace our customers' CMS with something module-base. Mostly we'll be using modules that fetch data from our systems, such as opening hours, contact info and employee bios. But our customers will also require the possibility to add a bit of custom content, such as a little text (simple editor) and images (galleries, slideshows, etc.)

Umbraco was recommended to us for an unrelated project because it uses ASP.NET and all our other services do too. I haven't seen anyone else use Umbraco for this type of thing, as I believe this kind of service is rather unusual, not to mention a little challenging to ressearch. So it's unclear to me if this is even something the platform could do. Essentially we'd have one Umbraco setup - customised and integrated into our system to fetch data from our customers - and then isolated areas where each customer can go in and use the Umbraco CMS we've set up for them to edit their own small set of pages. From what I read, it doesn't seem like Umbraco had been built with this kind of use in mind.

Has anyone had any experience using it for something similar? Or has an inkling if this can be done? I don't really need specifics - I'll leave that to our developers - but any pointers indicating how/if it's possible would be greatly appreciated.

Sarah Wed, 25 May 2016 10:56:08 +00:00
Media in external index Guys,

Looking at the examine external index is there a reason why we have media in there and is it even needed. The reason i ask is my index has 27600 docs. This is causing issues on azure after a web app swap as it takes a while to rebuild.

I did some testing by removing from my index all items of indextype media this brings my index down to 3000 and thus builds alot quicker. I also then updated my examine config to exclude these media items.

Please note this is on external index not internal. I can understand everything being in internal index.



Ismail Mayat Tue, 24 May 2016 15:39:58 +00:00
How to enable conditions for show a field in Umbraco Forms? Hi.

I want to use enable condition for show or hide some fields. What should I do for it?

First. I defined a condition similar to image below:

enter image description here

And then, my form transformed to image below:

enter image description here

But when I run form page and select option 1 in First Select field, Second Select is not appear!

Am I do another task for enable condition?

I use Umbraco Forms 4.3.0

With thanks.

Hassan Mon, 23 May 2016 10:49:20 +00:00
Prevent unpublish/delete of parent node I have been testing this package and it seems ideal for my needs.

However, there seems to be one issue : to allow users to create documents, I need to give them edit access at the parent level, so the create option is visible and creates documents one level below (where I want them).

However, this means they have access to unpublish (or worse, delete) the parent node.

I could hide the ufe panel for edit at the parent node by javascript, but that's not very secure. Is there any other way around this?

In other words, they should be able to create and edit child documents but not do anything to the parent.


[update] I found out that you can control permissions by user at page level, so I can at least remove delete : but I need to allow 'publish' so users can self-publish the child nodes - but then they can still unpublish the root node, so this is still a problem.

Is there any configuration I can do on this?

Tim C Fri, 20 May 2016 05:40:24 +00:00
Load content without pageload Cheers everyone,

I've been working with Umbraco for a couple of days now. I'm working on a little project for myself to learn Umbraco.

But I just hit a wall and I hope you guys can help me out. My site so far can be seen here:

If you enter the site and choose "Gallery overview" you'll see some categories, Choose VUE.

Now, if you hover over an image and click on the title or "view page" you'll see an error, just ignore that.

What I wish to accomplish is to open the image in lightbox but on the right side of your screen I want the description to be displayed WITHOUT pageload.

I have simple RICH EDITOR which I'd like to display when you click on an image.

I think this requires some ajax call but I'm not familiar with how that works. Do any of you guys have suggestions? :o)

Mike Bertelsen Thu, 19 May 2016 19:53:51 +00:00
ModelsBuilder PropertyValueConverter Hi,

I'am playing around with the modelsbuilder and have a question regarding the generation of the models. Is it possible to define which object is returned by a property. For some properties I like to have a different type of object or a more specific type. for example:

For example: A relatedlinks type now returns a JArray, but I have my own propertyvalue converter. The contentpicker returns an object but I like to have a different more specific type.

What I did with my own models builder was give the programmer full control over which types are generated by using a dictionary (in a T4 template, but I could be an xml file, or an implemementation of a specific interface as well). Maybe this is an Idea for the modelsbuilder (if there is not jet another solution);

var types = new Dictionary<string, string> {
{Constants.PropertyEditors.RelatedLinksAlias, "IEnumerable<LinkModel>"},
{Constants.PropertyEditors.ContentPickerAlias, "IModel"},
{Constants.PropertyEditors.MultiNodeTreePickerAlias, "IEnumerable<IModel>"}, 
{"Umbraco.Grid", "GridModel"},
{Constants.PropertyEditors.MacroContainerAlias, "IEnumerable<DynamicMacroModel>"},
{Constants.PropertyEditors.MediaPickerAlias, "ICropImageModel"},
{Constants.PropertyEditors.ImageCropperAlias, "ICropImageModel"},
{Constants.PropertyEditors.TrueFalseAlias, "bool"}};
Chuhukon Mon, 09 May 2016 12:46:07 +00:00
Formulate Feedback - Does it Work for You? Having just recently released Formulate, I'm curious if anybody has got it working.

I want to be sure there isn't some glaring bug I've overlooked (like I did in the initial release).

Has anybody had success installing Formulate and rendering a form?

Nicholas Westby Tue, 12 Apr 2016 22:00:28 +00:00
Issue with authentication Hi, I am using a simple .net Membership Validator to authenticate users logging in to the website. The authentication fails every time without any reason. No error is being reported to the logs..I have no idea what's causing it...

    public ActionResult LoginPost(Models.Customer.LoginModel model)
        var provider = Membership.Provider;
        string name = provider.ApplicationName; // Get the application name here
        if (System.Web.Security.Membership.ValidateUser(model.UserName, model.Password))
            if (Membership.ValidateUser(model.UserName, model.Password))
    }  }
Gheorghe Balan Fri, 11 Mar 2016 14:16:10 +00:00
Server side validation error I've built my first SurfaceController as per the excellent video chapter.

The contact form works fine but, before I set up client validation (which works also) or if I disable client validation, server side validation ends with an error when Submit is clicked only if one or more of the form's fields are empty, as follows: 1. Open the page with the Contact Form. 2. Leave one of more fields empty. 3. Click Submit. 4. In debug, the controller recognises that the model is invalid: if (!ModelState.IsValid) 5. The page with the contact form renders but the macros in the page (the contact form macro and the navigation macro) do not load with the following messages embedded in the page: Error loading Partial View script (file: ~/Views/MacroPartials/Navigation.cshtml) and Error loading Partial View script (file: ~/Views/MacroPartials/ContactForm.cshtml)

What am I doing wrong?

Your help would be much appreciated.

Thanking you in anticipation.


Roger Withnell Mon, 08 Jun 2015 16:36:56 +00:00
Search field don't search anything Hi all

If I enter some text in the search field the google map doesn't show me any result. It seem like the search function isn't working... I tried in the latest Umbraco version 7.2.4

best regards,

lele Mon, 23 Mar 2015 16:55:00 +00:00
Grid Layout Compatibility Hi, I tried to make uCKEditor working with the new Grid Layout, but I have no luck,

I modified grid.editors.config.js adding 

        "name""uCKE text editor",

but this is not enough.  I can see the editor but at the first key press, it disappear. Do you have any suggestion?

Marco La Porta Sat, 07 Mar 2015 17:39:29 +00:00
How to approach different tax values in the same category/shop We are working on a webshop with Merchello and we are not sure how to approach different tax values in the same category/shop. For example food is 6% and clothing 21%.

Is it possible to extend the product with values or datatypes, like a Umbraco Document Type? Or is the a taxprovder the best choice, and how to match the product with the different tax?

Thank in advance for any advice. Wesley

Wesley de Roo Tue, 20 Jan 2015 10:35:46 +00:00
Merchello 1.3.0 Merchello 1.3.0

Release Date: TBD

Products and Content

This update will address the product to content relationship issue. At this point we are discussing several different approaches to the problem and I will be writing an RFC to before tearing into anything at great length.

This version should provide for:

  • The ability to add a product through content so that a content editor "can" have a single point of editing. The product will still show up in the Merchello Catalog so that the product information can be easily found and the ability to update information across many pieces of content is preserved. Eg. if the content product is copied to another language for example. We also will need to discuss the option of creating a new "copied" product on content copy.
  • The ability for a content editor/design to use ANY Umbraco Property editor to extend a product
  • Product types (product templates in other systems). This may be an area where we can double dip with Option Groups and Shared Options.


RSS - I plan on starting the 1.3.0 branch in the next couple of weeks due to the number and complexity of some of the issues we are trying to solve. It would also be great to get as much community feedback as we can here so that we do not overextend or do it "our way" ... ;-)


Rusty Swayne Fri, 28 Mar 2014 20:54:56 +00:00
SAML and Umbraco Hi guys!


We have just start work on an Umbraco 6 project that requires us to use SAML protocol to interface with a security provider. After having a brief Googling session there doesn't seem to be any kind of recent work with Umbraco using a SAML based membership provider. If anyone reading this knows of any projects or good examples of SAML and Umbraco implementation - if you could post your info that would be super!


The only real Umbraco and SAML thing I have found so far:





Jacob Polden Fri, 31 Jan 2014 15:33:17 +00:00
Contour render the form on the "Thank you" page again Hi

Is it possible to show the Contour Form on the "Thank you" page?

Something like:

@if (Model.SubmitHandled) {
    <p class="contourMessageOnSubmit">@Model.MessageOnSubmit</p>
    // Render here the form again
} else {
    // Contour rendering the Form

I've already tried to remove the 'else{}' and leave the form rendering section just there.

I have also tried: '@Umbraco.RenderMacro("", {})'

Any suggestions?


Tobias Lopez Fri, 23 Aug 2013 08:34:59 +00:00