ActiveTopics Tue, 06 Oct 2015 14:40:17 +00:00 umbraco Latests topics from the forum on en Need a searchbox to a UmbracoExamine searchside Have a search page that works by entering search-results?keywords=[something], and the code looks like this:

@using Examine.LuceneEngine.SearchCriteria
@inherits Umbraco.Web.Macros.PartialViewMacroPage

    string searchTerm = Request.QueryString["keywords"];
    if (String.IsNullOrWhiteSpace(searchTerm))
        searchTerm = "";
    var searcher = ExamineManager.Instance;
    var searchCriteria = searcher.CreateSearchCriteria();
    var query = searchCriteria.GroupedOr(new[] { "nodeName", "name", "title", "bodyText", "seo" }, searchTerm).Compile();
    var searchResults = searcher.Search(query).Where(r => r["__IndexType"] == "content").ToList();

@if (searchResults.Any())
    <ul class="search-results-box">
        @foreach (var result in searchResults)
            var node = Umbraco.TypedContent(result.Id);
            var pathIds = result["__Path"].Split(',');
            var path = Umbraco.TypedContent(pathIds).Where(p => p != null).Select(p=> new {p.Name}).ToList();
                <section class="results-box">
                        <a href="@node.Url">@String.Join(" > ", path.Select(p => p.Name))</a>
                    <a href="@node.Url" class="results-url">@node.Url</a>

                    @if (result.Fields.ContainsKey("title"))
                        <p class="results-title"><strong>@result["title"]</strong></p>

                    @if (result.Fields.ContainsKey("bodyText"))
                <hr />
        There are no results matching your search criteria: 

            @if (!String.IsNullOrWhiteSpace(searchTerm))

This is working when I write a word direct in the end of the querystring in the URL (but not yet with special characters like Norwegian ÆØÅ).

Someone who knows how to associate a search box to search in this searchpage with name search-results?

Have found some answers like these, but it not working as intended:

<div class="box hidden-lg hidden-md hidden-sm pull-left">
<div class="container-2">
    <span class="icon"><i class="fa fa-search"></i></span>
    <input type="search" name="keywords" class="form-control" id="search" placeholder="Søk.." onkeydown="Javascript: if (event.keyCode==13) searchRESLT();"/>

    function searchRESLT() {window.parent.location} = "/search-results?=" + document.getElementById("search").value;        
Tom Engan Tue, 06 Oct 2015 14:01:36 +00:00
partial view breadcrumbs stopped working after todays update Hi, the simple partial view site breadcrumb macro has suddenly stopped working and is displaying the following error:

Error loading Partial View script (file: ~/Views/MacroPartials/SiteNavBreadCrumbs.cshtml)

This seemed so strange as it was working perfectly before I updated project application files today (from Project/Manage Nuget Packages/Updates).

I created a test page and just popped the breadcrumb code file from umbraco back office directly into the test page without touching the code and that is throwing the same error. You probably know the code very well but here it is again for your ease of reference:

@inherits Umbraco.Web.Macros.PartialViewMacroPage

@{ var selection = CurrentPage.Ancestors(); } @if (selection.Any()) {

Karen Worth Tue, 06 Oct 2015 13:36:44 +00:00
CRUD on SPA using custom Dashboard Hi ,

Can SPA CRUD be implemented using custom dashboard? actually i dont want to use separate UI , i want it to be in the Umbraco dashboard or is there any place we can fit?

please help

Regards, Harsh

Harsh Tue, 06 Oct 2015 13:35:42 +00:00
Indexing pages with Role Based Protection Hello,

Firstly - really fantastic plugin thank you! Has anyone implemented this on an umbraco site using role based protection.

At the moment pages with protection enabled are not getting indexed. (I'm sure this is great for most people) but I need to index these pages. Is this possible?

Thanks, Henry

Henry Tue, 06 Oct 2015 13:23:57 +00:00
Public Access and Multiple Group in 7.3 Hi Guys, I have issues with Multiple Group Role in Public Access. I have check the Table : umbracoAccessRule and I notice only one Group is save in the database.

Is this a known issue?


Simplicio Jison Jr. Tue, 06 Oct 2015 11:40:24 +00:00
ContentType property UpdateDate is always incorrect (default DateTime) Hi all,

We have a problem during development of a custom tracking changes tool. Call to the ContentTypeService.GetAllContentTypes() returns a list of all content types but each has an UpdateDate property value as 01.01.0001. It is a big problem for us.

Does anyone know how can this property be retrieved?

Thanks in advance.

Ivan Doroshenko Tue, 06 Oct 2015 10:51:12 +00:00
Building the Core Hi Guys,

So this might be a fairly noobish question but I'm interested in exploring the Umbraco Core with a look to possibly contributing moving forward.

So, my first task was to build the core.

I took a clone of the Github repository here:

And follows the instructions here:

I'm running Visual Studio 2013 Update 4.

However, when I run the

grunt dev

command it all goes fine until it runs this:

Running "bower-install-simple:dev" (bower-install-simple) task Executing Bower (Command: install) bower ENOGIT git is not installed or not in the PATH Warning: Task "bower-install-simple:dev" failed. Use --force to continue.

Aborted due to warnings.

I've not tried running it with --force as my knowledge of GRUNT/BOWER/Node is nil. I've always just used Nuget for package management.

When I try to run the solution I get no build errors but I'm presented with an error page in my web browser:

A server error occured

This is most likely fur to an error during application startup

Some image that fails to display shows here

Did you know


No errors exist in the umbraco log so I'm at a bit of a loss as to where to start resolving this as I suspect the latter error is caused by the former failed command.

Any help would be appreciated.

Nik Tue, 06 Oct 2015 10:50:11 +00:00
library.sendmail stops working Having an issue with the library.sendmail function in a template.

The template only contains this:

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    Layout = null;

    library.SendMail("","","TEST","test test test", true);

Mail sent 

(The to and from addresses are not the ones I am using)

At first, it works fine, but after a little while, it stops sending out mails.

The log file says this

2015-10-06 12:18:29,013 [6] ERROR umbraco.library - [Thread 33] umbraco.library.SendMail: Error sending mail.
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: The remote name could not be resolved: 'xx'
   at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6)
   at System.Net.PooledStream.Activate(Object owningObject, Boolean async, GeneralAsyncDelegate asyncCallback)
   at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
   at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at umbraco.library.SendMail(String FromMail, String ToMail, String Subject, String Body, Boolean IsHtml)

I do not know where "xx" as a remote name comes from. It has nothing to do with either reciever or sender of the mail.

Recycling the app pool solves it for maybe a day or so.

Umbraco version 7.1.6 assembly: 1.0.5350.25714

Michael Nielsen Tue, 06 Oct 2015 10:35:37 +00:00
Existing Content Checks Hi Richard,

My customer has a number of scheduled RSS imports for a multi-site install. The same RSS feed in one instance is imported to multiple sites in the same install however the new nodes are only created on one of the sites and the others report that that the items were skipped because they already exist.

When evaluating if an item has already been imported do you check against only the DataSourceKey and not the UmbracoID and the DataSourceKey together?

Thanks, Simon

Simon Dingley Tue, 06 Oct 2015 10:33:15 +00:00
DAMP on legacy Umbraco v 4.7.2 site - thumbnails go missing Hi,

I'm looking at a charity site on v4.7.2 - It has DAMP powering the images. There is a listing page which works on first load. If you click onto one of the pictures it then loads a "details" page and shows a larger version of the page.

When you then go back to the list page the thumbnail is missing (the URL is output blank).

Has anyone seen this before? I've just updated DAMP to 2.8 as I read through a few posts and people had similar but not the same issue.

The thumbnail image is still "there" in the media folder - thought there might be some cache clean up problem.

<xsl:for-each select="$results">
    <xsl:sort select="@createDate" order="descending" />
    <xsl:if test="position() &gt;= $startMatch and position() &lt;= $endMatch and current()/image != ''">
        <a href="{umbraco.library:NiceUrl(current()/@id)}">
          <xsl:variable name="media" select="umbraco.library:GetMedia(current()/image, 'false')" />
          <xsl:if test="$media/alternateText != ''">
            <xsl:attribute name="alt">
              <xsl:value-of select="$media/alternateText"/>
          <img src="{$media//crop[@name = 'thumbnail']/@url}" width="160" height="134" />
          <span style="display:block; text-align:center;">
              <xsl:when test="current()/title != ''">
                <xsl:value-of select="current()/title"/>
                <xsl:value-of select="current()/@nodeName"/>

Kind regards


Steve Morgan Tue, 06 Oct 2015 10:30:51 +00:00
Codemirror textarea as datatype I would like to make a codemirror textarea as a datatype. I can easily create a textarea on the frontend and convert it into a code area using Umbraco's native files:

<link href="~/umbraco_client/CodeMirror/Js/Lib/codemirror.css" rel="stylesheet" />
<script src="~/umbraco_client/CodeMirror/Js/Lib/codemirror.js"></script>
<script src="~/umbraco_client/CodeMirror/Js/Mode/Xml/xml.js"></script>
<script src="~/umbraco_client/CodeMirror/Js/Mode/Javascript/javascript.js"></script>
<script src="~/umbraco_client/CodeMirror/Js/Mode/Css/css.js"></script>
<script src="~/umbraco_client/CodeMirror/Js/Mode/Htmlmixed/htmlmixed.js"></script>
    var editor = CodeMirror.fromTextArea(document.getElementById("demotext"), {
        lineNumbers: true,
        mode: "text/html",
        matchBrackets: true

When I try to pack it up as a datatype I only get the raw Textarea


angular.module("umbraco").controller("CodeMirrorEditorController", function ($scope) {
var editor = CodeMirror.fromTextArea(document.getElementById("codeTextBox"), {
    lineNumbers: true,
    mode: "text/html",
    matchBrackets: true



<div ng-controller="CodeMirrorEditorController" class="guiInputStandardSize">
<textarea id="codeTextBox" class="umb-editor umb-textarea textstring ng-scope" rows="30" ng-model="model.value"></textarea>


"propertyEditors": [
        "name": "Codemirror",
        "alias": "Demo.Codemirror",
        "editor": {
            "view": "~/App_Plugins/CodeMirrorEditor/codemirroreditor.html"
"css": [
"javascript": [


I'm not very familiar with custom datatype creation - can any one spot what I'm doing wrong...? :-|

Robin Hansen Tue, 06 Oct 2015 10:24:19 +00:00
Access IPublishedContent properties of current node Hi,

whats the best way to access properties of the current node where i render the doctype grid editors.

i have to read certain values of the umbraco document and render them in the partial views for the doctype grid. i do need this for the preview mode in the backend.

in the frontend i have a workaround using a session variable where i store the actual page id in the masterview.

thx in advance, andreas

Andreas Kaltenhuber Tue, 06 Oct 2015 09:53:42 +00:00
Backoffice user language/culture How can I retrieve the backoffice user language (or culture) using code?

Thanks. Kris.

K.Garrein Tue, 06 Oct 2015 09:39:05 +00:00
Painfully slow moving between import steps Not sure if this is something unique to this install but we are finding it extremely slow to move between steps in the import definitions. It can sometimes take ~30 seconds to move from one step to the next and when you have lots to update this becomes quite painful and unproductive.

If it helps this install is using CMSImport PRO 3.1.2.

Any ideas on improving the speed? It's not present in the rest of the back office.

Thanks, Simon

Simon Dingley Tue, 06 Oct 2015 09:01:20 +00:00
Umbraco ImageProcessor.Web.dll is appearing as a trojan Our solution has just been updated to 7.3.0 and whenever we try and rebuild, the whole development team seem to get issues with ImageProcessor.Web.dll detected as a Trojan:Win32/Vundo.IB.

Can anyone else confirm this is happening as well for them?

Charlie Marshall Tue, 06 Oct 2015 08:52:51 +00:00
Image Cropper Extended Hi,

I am trying to install image cropper extended to make it work with amazon ast . But after I install the package, I am not able to create the data type as the property editor dropdown does not show the extended image cropper data type. There is no folder created inside App_Plugins . The only changes after installing the package is the bin folder has few more dlls. The Package installation does not show me any error either. Can someone please help. My umbraco version is 7.2.8

Regards Raghav

Raghav Tue, 06 Oct 2015 08:14:44 +00:00
How to use the Url Picker Name as a Label template ? I don't even know it is possible, but can I use the Name property of an url picker as a label template in, let's say Archetype ?

I've tried with {{link}} and {{link.Name}} but no luck.

enter image description here

Sebastian Dammark Tue, 06 Oct 2015 08:03:41 +00:00
JSON support I can't even begin to describe how much it would rock if CMSImport supported JSON data. With so many online services exposing JSON data we would be able to import content, images and products from exiting platforms like Shopify, Pinterest, Wordpress, Contentful and many others.

The web is running JSON when will CMSImport join?

Mathias Valentin Tue, 06 Oct 2015 07:19:37 +00:00
Use PDF Template in CMYK pulling data from a form? Hi, I want to know if this package can use a pre-existing PDF file in CMYK as a template, and apply data from an umbraco form. Is this feasible ?

Federico Menoyo Mon, 05 Oct 2015 21:46:08 +00:00
Unpublish Content selected through Multi-Node Picker My home page has a Multi-Node selector for a carousel, the carousel items are created as content items and selected on the homepage.

I have set each carousel item to 'Unpublish' on a certain date to remove it from the carousel on the page. When I look at the item in Umbraco it is shown as unpublished but the item will still appear in the carousel and can still be selected regardless of being published or not. What should I do to remove a content item from the site at a specified date and time?

Ginger Mon, 05 Oct 2015 20:59:35 +00:00
Umbraco 7: Getting Image path tooltip or alt/Title text on Media Picker item In Umbraco 4.11 (I know a throw back), when you hovered over the media item you had chosen on the Media Picker you got a tooltip or alt text indicator telling the author what the image path was or what the image name was.
Is there a way to do this in Umbraco 7? I have had some questions and requests from my content authors to see if I could add this, I don't know if I can or how. But would be great to have this in the BackOffice.

Any ideas on what I could do until then? How I can edit the Umbraco code to allow the users to see the path or the file name at least?

Carlos Mosqueda Mon, 05 Oct 2015 19:59:01 +00:00
Fork with PostgreSQL support Hello,

For anyone interested, I have an EXPERIMENTAL fork of DEV (from Late September) modified to support the database PostgreSQL.

This fork is available at

I have a running instance of Umbraco at which is powered by PostgreSQL.

In this fork, I force all PostgreSQL database objects to lowercase. This is due to problems due to Umbracos camel casing, sometimes inconsistent quoting within Umbraco of schema objects and PostgreSQL's case insensitivity methods.

In addition, PetaPoco objects were modified to expect PostgreSQL to have lowercase schemas. In addition most significantly, PetaPoco was modified to use an internal Expando object (sourced from the Massive project) that is case insensitive rather than the default System.Dynamic.ExpandoObject. This was done as the PetaPoco was building case sensitive POCOS (derived from Expando) causing Umbraco to expecting camel case objects and PostgreSQL returning lowercase. If the POCO is case insensitive, problem solved.

Last of all, I added operators for Boolean-->Int comparisons, SQL helpers for both new and old database layer objects, and provided in the UI the capability to choose PostgreSQL as a data store.

Any interest in working this in the Umbraco core?


Extensive testing and bug fixes Custom connection strings

Wayne Massey Mon, 05 Oct 2015 19:54:49 +00:00
Is Umbraco Forms in version 7.2.8/7.3 Free or licensed? Hi

I've used licensed version of Contour.. I just need to confirm if this is free or licensed before usage. Thanks in advance


Swathi Mon, 05 Oct 2015 18:28:39 +00:00
Housekeeping v7 released (for Umbraco v7+) Hi to all, the updated version of FALM Housekeeping is now released. The package is compatible with Umbraco v7+

You can find the package and source files in the new github project page:

You can report any issue in the github project issue page:

You can find all previous versions at:

Bye Adriano

Adriano Fabri Mon, 05 Oct 2015 16:36:28 +00:00
Can't create a new product I upgraded from 1.4.1 to 1.12.0 and now I can't create any new products. enter image description here

There is nothing in the error log, so I've no idea!

David Peck Mon, 05 Oct 2015 15:56:16 +00:00
Null reference exception in Merchello.Web.CustomerContext.EnsureCustomerCreationAndConvertBasket I'm getting a few exceptions being thrown that seem to then sort themselves out.

System.NullReferenceException: Object reference not set to an instance of an object.
at Merchello.Web.CustomerContext.<>c__DisplayClass1.<EnsureCustomerCreationAndConvertBasket>b__0(String x)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Merchello.Web.CustomerContext.EnsureCustomerCreationAndConvertBasket(ICustomerBase customer)
at Merchello.Web.Pluggable.CustomerContextBase.TryGetCustomer(Guid key)
at Merchello.Web.Pluggable.CustomerContextBase.Initialize()
at Merchello.Web.Pluggable.CustomerContextBase..ctor(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
at Merchello.Web.CustomerContext..ctor(UmbracoContext umbracoContext)
at Merchello.Web.CustomerContext..ctor()
at ASP._Page_Views_Partials_SiteHeader_cshtml.Execute()


An error occurred when trying to create a controller of type 'MFPA.Core.Controllers.Surface.BasketSurfaceController'. Make sure that the controller has a parameterless public constructor. ---> 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->
System.NullReferenceException: Object reference not set to an instance of an object.
at Merchello.Web.CustomerContext.<>c__DisplayClass1.<EnsureCustomerCreationAndConvertBasket>b__0(String x)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Merchello.Web.CustomerContext.EnsureCustomerCreationAndConvertBasket(ICustomerBase customer)
at Merchello.Web.Pluggable.CustomerContextBase.TryGetCustomer(Guid key)
at Merchello.Web.Pluggable.CustomerContextBase.Initialize()
at Merchello.Web.Pluggable.CustomerContextBase..ctor(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
at Merchello.Web.CustomerContext..ctor(UmbracoContext umbracoContext)
at MFPA.Core.Controllers.Surface.BasketSurfaceController..ctor(IMerchelloContext merchelloContext)

Noteably I recently upgraded from v1.4.1 to 1.12.0 so may have cocked something up there.

In case it's relevant I'm converting all users to anonymous users when they checkout.

I'm guessing _memberService.GetById(memberId); is returning null. I could do a custom build to add in an extra error catch here, but I fear that's not getting to the route of the issue.

Any ideas what could be up?

David Peck Mon, 05 Oct 2015 14:33:01 +00:00
Upgrade from 7.2.8 to 7.3.0 - can save only one time, must refresh. After upgrading from 7.2.8 to 7.3.0 with two different installations, both upgrades have that problem that I can only save once at a time every time I've done some changes in scripts etc. I have to refresh the page again every single time after one saving!

Very annoying. Anyone know how this can be fixed?

Tom Engan Mon, 05 Oct 2015 12:34:52 +00:00
Get TransactionId and paymentMethod on order Hi.

Is it possible to get TransactionId number and paymentMethod name on email when ordre is finalized.

If so, how would it be done?

I'm using TC vers.2.3.1


Palle Mon, 05 Oct 2015 12:08:15 +00:00
Getting nested content in groups? I am trying to get my nested content in groups, but I can't figure out how to do this. This is my loop:

@foreach(var logos in CurrentPage.Site().GetPropertyValue<IEnumerable<IPublishedContent>>("footerlogo").InGroupsOf(2)){

The code above returns the following error:

System.Collections.Generic.List<Umbraco.Core.Models.IPublishedContent>' does not contain a definition for 'InGroupsOf

How would i render my nested content in groups?

Søren Mastrup Mon, 05 Oct 2015 08:02:32 +00:00
Merchello on umbraco 7.3 not possible atm? Update Found this:

Seems like it not ready yet. My bad =)

Im trying to get merchello working to play around and evalute it for a possible usage for a incoming commerce site. But regardsless of what way Im trying to add merchello i get some error regarding the db(Se stacktrace below for one example). Are I doing it wrong or is merchello currently not working with the new umbraco 7.3?

For example:

Invalid object name 'merchCustomer'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'merchCustomer'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Invalid object name 'merchCustomer'.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) +1787814 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) +5341674 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1693 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61 System.Data.SqlClient.SqlDataReader.getMetaData() +90 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +377 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +1421 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +177 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +53 System.Data.SqlClient.SqlCommand.ExecuteScalar() +152 StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteScalar() in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:299 Umbraco.Core.Persistence.<>c__DisplayClassa.<ExecuteScalarWithRetry>b__9() +56 Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction(Func1 func) +170 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy) +118 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command, RetryPolicy retryPolicy) +52 Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteScalarWithRetry(IDbCommand command) +49 Umbraco.Core.Persistence.Database.ExecuteScalar(String sql, Object[] args) +333 Umbraco.Core.Persistence.Database.Page(Int64 page, Int64 itemsPerPage, String sql, Object[] args) +188 Umbraco.Core.Persistence.Database.Page(Int64 page, Int64 itemsPerPage, Sql sql) +91 Merchello.Core.Persistence.Repositories.PagedRepositoryBase2.GetDtoPage(Int64 page, Int64 itemsPerPage, Sql sql, String orderExpression, SortDirection sortDirection) +217 Merchello.Core.Persistence.Repositories.PagedRepositoryBase2.GetPage(Int64 page, Int64 itemsPerPage, IQuery1 query, String orderExpression, SortDirection sortDirection) +179 Merchello.Core.Services.CustomerService.GetPage(Int64 page, Int64 itemsPerPage, String sortBy, SortDirection sortDirection) +397 Merchello.Examine.DataServices.CustomerDataService.GetAll() +49 Merchello.Examine.Providers.CustomerIndexer.PerformIndexAll(String type) +62 Merchello.Examine.Providers.CustomerIndexer.RebuildIndex() +63 Examine.ExamineManager._RebuildIndex() in x:\Projects\Examine\Examine\Projects\Examine\ExamineManager.cs:240 Umbraco.Web.WebBootManager.<InitializeResolvers>b__c() +225 Umbraco.Core.Sync.DatabaseServerMessenger.Initialize() +280 Umbraco.Core.Sync.DatabaseServerMessenger.Boot() +87 Umbraco.Web.BatchedDatabaseServerMessenger.Startup() +186 Umbraco.Web.BatchedDatabaseServerMessengerStartup.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +63 Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37 Umbraco.Core.CoreBootManager.<Complete>b__8(IApplicationEventHandler x) +133 Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable1 items, Action1 action) +141 Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete) +282 Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +60 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +234 Umbraco.Core.UmbracoApplicationBase.ApplicationStart(Object sender, EventArgs e) +9

[HttpException (0x80004005): Invalid object name 'merchCustomer'.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9918021 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Invalid object name 'merchCustomer'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931916 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Andreas Fallman Sat, 03 Oct 2015 13:08:49 +00:00
Problems with Image Cropper data type Hello, with "Image cropper" data type, the image is loaded only in the media folder (filesystem) but not in the backoffice media section.

Unfortunately this is a big problem for my package FALM Housekeeping because the "Cleanup File System" tool identify all the images saved with image cropper data type, like orphans ready to be deleted.

Where is stored the path of the cropped image in Umbraco DB?

There is already a method to find all cropped images?

I'm trying to create a custom method to solve the issue in which I find the path of all cropped images, compared with finded orphans and display only those that really can be deleted

Can anyone help me?

Thank you in advance Adriano

Adriano Fabri Fri, 02 Oct 2015 16:17:04 +00:00
How to programmatically add product with variants in one method Hi,

I'd like to add product with variants. Is there any examples?


progproger Fri, 02 Oct 2015 10:50:54 +00:00
Route Handling I'm working on a full MVC project that contains both Umbraco CMSed Views and non CMSed views.

My route handing is currently like this.

    public class MyStartupHandler : IApplicationEventHandler
        public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)

        public static void RegisterRoutes(RouteCollection routes)

                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "\\", action = "Index", id = UrlParameter.Optional }

        public void OnApplicationInitialized(
UmbracoApplicationBase umbracoApplication,
ApplicationContext applicationContext)

        public void OnApplicationStarting(
            UmbracoApplicationBase umbracoApplication,
            ApplicationContext applicationContext)

When i try to load the an Umbraco page. Current-Page is null or the views dont load leaving the pages blank. When i remove the the code inside the Register Routes umbraco views load fine but the Controllers (not Surface Controllers) don't work. and non Umbraco views don't load

Looking for a way that will allow me to use Controllers to load views and Load the umbraco pages.

Zack Fri, 02 Oct 2015 10:31:08 +00:00
Avoiding conflicting edits Hi all,

I'm working on a new package that will allow the content editors to see where other editors are in the content structure.

You can view a small preview here

Currently it shows the status in the tree with a small overlay and also on the page with the different user gravatar images

Would appreciate any input you can give to make this as good as possible

Tim Geyssens Thu, 01 Oct 2015 11:30:34 +00:00
Can't find the code for the form on home page Hi,

I have recently taken over development for and am having a hard time finding the place where the code for the form on the right side lives.

I've looked in every folder, clicked every link and have come across many forms - but they are all older versions.

Is there a way to look at the code and maybe follow it back to trace it back to the original folder or file that contains the form code?

Or is there another way to find this? It looks like it's on a side bar. I found the home page content, but no forms.

I would appreciate any help you can share. Thank you!

Ethan Tue, 29 Sep 2015 17:30:12 +00:00
TinyMce Turn On theme_advanced_path We have recently upgraded a sizeable project from v6 to v7 and in the process lost a few of the the more detailed configurations we had in v6. One of these was the element path we had displayed in TinyMce to aid some of the more technical editors.

Documentation on this feature is here:

I can't seem to get this back in v7 despite adding the following to my tinyMceConfig.config file:

    <config key="theme_umbraco_statusbar_location">bottom</config>
    <config key="theme_umbraco_path">true</config>
    <config key="theme_umbraco_layout_manager">SimpleLayout</config>

That said I have looked in the editor_template_src.js file and the default settings seem to be the same anyway for theme_umbraco_path and theme_umbraco_toolbar_location

theme_umbraco_path : true,
theme_umbraco_toolbar_location : 'bottom'

Anyone know if there is a restriction in the Umbraco implemention of this that might prevent this option from working? I'm struggling to even find the tinyMCE.init in my Chrome inspector to see if it is in fact being applied.

Simon Dingley Fri, 04 Sep 2015 08:26:10 +00:00
scheduledTasks not working Hello,

I've been using the simplest example of scheduledTasks:

<task log="true" alias="test60" interval="60" url="valid_url"/>

The url is valid and public, it should send me an email when it is called for debugging reasons.

When calling this url from the browser I do get the email, but it seems it is not called by the task.

Haven't seen any log entry related to the task schedular.

My site is hosted on godaddy if that helps.

Ran Chen Fri, 14 Aug 2015 16:49:50 +00:00
No files in zip The current version of the the zip here only contains a "package.xml"-file - nothing more....?

Markus Johansson Thu, 13 Aug 2015 14:48:56 +00:00
Replacing Contour (Umbraco Forms) with Something Better TLDR: Contour (which is being supplanted by Umbraco Forms) has a bunch of problems, and I'd like to create a better open source form builder so I never have to use Contour again. I'd like your feedback to decide what to include in this new tool.


When I create this Contour replacement, I'd like to make sure it is built right. For that reason, I'm identifying problems with Contour and Umbraco Forms, and coming up with some features I'd like for this new tool to have. However, I have mostly experience with Contour, so I'd like to see if any of you know of things Umbraco Forms can do that Contour can't. Also, I'd like to know what you want so this tool can be useful to the entire community. I've already asked some coworkers what they think, but I want to know what you think as well.

Issues with Contour

These are the issues I've identified with Contour.

  • Closed source. It's not open source, so bugs can't be fixed by developers and it's harder to troubleshoot. Some bugs have take years to be fixed, and some remain unfixed.
  • No AJAX. Doesn't support AJAX well (e.g., need to reimplement the server-side validation logic).
  • No aliases. Fields don't really have an alias to refer to programmatically. I think there is a GUID, but that changes per environment (dev/stage/prod), and there is an auto-alias, but that has its own problems (e.g., is based on field caption, and auto-truncates at around 75 characters). Neither the GUID or auto-alias are available in the UI, so finding them is a PITA. Also unclear if the auto-alias updates after the caption changes.
  • Poor documentation. Documentation is poor.
  • Not free. Costs $140 per license.
  • Slow. Has speed issues (e.g., I just worked with a modest form that takes 30 seconds to submit):
  • Storage mandatory. Can't avoid storing the data, which is problematic for things like HIPAA compliance:
  • Clumsy view alternates. Clumsy way of switching views per form (you name a CSHTML file based on the form GUID, which changes per environment).
  • Clumsy implementation. The implementation is clumsy and leads to lost developer time:
  • No client-side workflows. Doesn't support client-side workflow steps (e.g., tracking form submissions with GTM).
  • Markup stripped. Strips markup from field settings, which leads to funky workarounds (e.g., using {LESS-THAN} rather than <).

Umbraco Forms Research

I wanted to be sure I wasn't replacing Contour for no reason, so I wanted to look into the differences between Contour and Umbraco Forms. Here are my notes.

  • Better documentation. Documentation is improved, though it is still a work in progress:
  • Configurable labels. Can change the label for the Previous, Next, and Submit buttons.
  • Bulk record actions. Seems to facilitate bulk actions on records better (e.g., can do a bulk select to subsequently perform a bulk delete).

Ideas for an Ideal Contour Replacement

Here are my ideas to improve upon Contour.

  • Bookshelf documentation. Create documentation in markdown and release for Umbraco Bookshelf.
  • Regex library. Create a regex library to avoid things like having to recreate an email regex over and over (and replacing it in a bunch of places). Install a few by default.
  • Flexible buttons. Make buttons more flexible (e.g., change labels, add cancel button, add clear form button, change where button appears).
  • Form parts. Allow forms to be split into parts (e.g., so labels and instructions and such can be inserted between various fields without having to implement custom field types).
  • Metadata. Allow custom metadata to be attached to forms/fields. And allow for extensibility so programmers can add custom metadata editors. As an example, a programmer might implement a color picker as a metadata editor to allow the form editor to pick the text color of each field. Maybe these could be form "settings" and field "settings"? These would differ from custom field types in that it would be possible to attach this metadata to existing field types.
  • AJAX forms. Make AJAX submission a form setting (and also allow developers to programmatically decide when to use AJAX or not).
  • Event system. Add lots of opportunities for programmers to react to form events, such as a JavaScript event when AJAX forms are submitted (before and after). For example, a programmer could modify the page layout on successful or failed form submission, even with AJAX forms.
  • Error messages. Allow for field-specific and error-specific messages (e.g., "First name is required" or "Email must be in a valid format").
  • Extensible validations. Allow for different types of validation to be added to fields in addition to the typical ones (namely, required and regex).
  • Multiple validations. Allow for multiple validation rules on a single field (e.g., multiple regex validations, each with their own error messages).
  • Email designer. Add an email designer that allows for custom emails to be sent. Maybe integration with third-party services that handle email better?
  • Data store workflow. Make storing data to the database a workflow step (would allow users to avoid storing to the database). Would probably add this workflow step to newly created forms by default.
  • Configurable defaults. Make all defaults configurable in a config file and at runtime based on conditions. Can probably accomplish this with DI/IoC.
  • Bulk workflow steps. For example, an email that gets sent out periodically indicating how many records were inserted in a given period (say, each week).
  • Use doctypes? Might be able to save a lot of time by using document types as the form builder. On the other hand, that would be hard to extend since it's part of the Umbraco core, and I think they're thinking of creating a new doctype editor in Umbraco 7.4, so any work around this may cause more problems than it's worth.
  • Data transforms. Ability to scrub/encrypt/transform portions of the data before storage (e.g., first name, last name, message).
  • Split validation. Allow client-side and server-side validations to be imposed separately.
  • Layout builder. Would be great if things like fields/validations could be configured separately from the layout. That would allow for a layout builder that is extensible. Could come with a default layout (perhaps something like a Bootstrap grid). Then, developers could extend with further layouts. Could even be contextual (e.g., the layout is "fancy" on the contact page, but "simple" in a flyout menu).

What do You Think?

I'd like to hear your ideas for this project (see questions below image).

I Want You

Are there some issues with Contour that I missed? Is there a killer feature you'd like this new tool to support? Have I misidentified issues or are some of them fixed in Umbraco Forms? Any other comments or ideas?

Nicholas Westby Mon, 03 Aug 2015 00:16:20 +00:00
upgrading umbraco 6 webforms to umbraco 7 mvc course of action I was wondering with so much difference in umbraco 6 and mvc 7 we have to plan this so we can cover as much as we can and not bump into problems..

I need an opinion from anyone here who have had experience upgrading umbraco. is this a good course of action for our team? what else should i consider?

  1. Install latest umbraco version in dev
  2. Install all packages/plugins currently in live to dev (ublogsy,cmsimport,diplo linkchecker)
  3. Export all document types, macroscripts, custom datatypes (excluding content) from live to dev and import
  4. Convert all masterpages to views
  5. Embed all macroscript files to the new views
  6. Export live data (content only) and import to the dev site
  7. Convert all forms to umbraco 7 forms (we are using contour)

the reason we are not just replacing the umbraco 6 files to umbraco 7 is because we want a clean installation.

thank you very much

denisedelbando Wed, 29 Jul 2015 19:01:37 +00:00
UFRecords table getting blown away after each deployment I have just upgraded an Umbraco 7.2.5 website from Umbraco Forms 4.1.1 to 4.1.4 and have run into an odd issue - since Umbraco Forms has been upgraded, each time the website is deployed (we use Octopus for all deployments), the UFRecords table is blown away and I've to restore the database from a backup to be able to retain form submissions.

I can confirm that that appears to be the only table that is affected - UFRecordFields, UFRecordDataString, etc all appear to be fine after a deployment.

I have tried restarting the website and recycling the app but that does not appear to trigger the clearing of the UFRecords table. All Octopus Deploy is effectively doing is copying across the website package and updating IIS so that it points to the new location.

I should also note that AppData, Media and Data (which normally sits within AppPlugins/UmbracoForms/) are set up as virtual directories on IIS so that this content can be retained across Octopus deployments.

My question: what in all of this could be blowing the UFRecords data away? It is slightly annoying that a database backup/restore needs to be a part of each deployment currently.

Joseph Tue, 28 Jul 2015 02:36:43 +00:00
CG15 Open Space: Umbraco Security Model During CodeGarden 15 I suggested to do an open space session about the Umbraco Security Model. The minutes from that session can be found here. In this topic I try to summarize the session.

The security model doesn't seem to have been very high on the roadmap of the HQ. Maybe because it is difficult to cater to all types of applications. There is no one model to rule them all.

The biggest change we (as participants of the open space) would like to have in the security model is the ability to use groups next to the user types (==roles) we have now. By having groups, you do not have to repeat settings for every user you add to the system. It was suggested to have the possibility to set rights on the group as well as on the individual user. I personally think that is a bit overkill, but as with everything about this subject it's open for debate (preferably in this topic).

Another point of discussion is the current member model. Should there be a difference between members and users? (Obviously access to the back-office is a differentiator). Members are now in the tree because of the ease off adding properties to them (had to be done in web.config otherwise). Is this still necessary when the member model uses the Identity providers.

Also discussed is if it would be an enhancement when rights could/should be set to fields and/or tabs. The consensus was that rights on tabs would do in most cases.

If something is added to the security model, all the pickers should also take that into account. Perhaps a level of access is needed (view, list, edit, ?). Following this the question was asked if a read only version of a document is a requirement? We all thought that would come in handy.

Groups are on the roadmap but fastest way is to get it is to do it ourselves (package or pull request). Start out with package, can be pulled in by core or core can be adopted to supply hooks.

We just have to start with it, but it makes sense to get the specs right first. Lets use this topic for that and see if we can set up a workspace next.

Vincent Baaij Mon, 15 Jun 2015 15:41:02 +00:00
Adding a content picker as a grid editor Hey there :) 

Im on a project where we are gonna have quite a few widgets that is going to be reusable, and here my idea was to have a node structure with different kind of widgets. So inside the grid i want add content/tree picker where you just select the widget you want to insert. So basicly a treepicker starting from a special node/place in the tree and just saving the node id. 

So far i have added this to the grid.editors :

 "name": "Widget",
        "alias": "widget",
        "view": "widget",
        "icon": "icon-umb-developer color-orange"

So now im hitting rock bottom, any articles to help me on from here? or anyone done something similar?


Rasmus Fjord Sun, 25 Jan 2015 22:58:46 +00:00
Saving CDATA in Umbraco 7 Is there a way in Umbraco 7 to save script-elements with CDATA in the umbraco.xml?

When trying to publish a textbox multiple with CDATA I get the error "Cannot have ']]>' inside an XML CDATA block.".

Umbraco 6 had the old datatype textbox multiple that allowed to save CDATA tags by replacing:
    _data.Value = this.Text.Replace("<![CDATA[", "<!--CDATAOPENTAG-->").Replace("]]>", "<!--CDATACLOSETAG-->");

kammalanda Fri, 09 Jan 2015 11:29:25 +00:00
Exclude node from Examine index Hi,

Is it possible to exclude a particulare node ID from the examine index? I'd like something like <ExcludeNodeID>. Or is there some other way to go about to achieve this?

Peter S Wed, 05 Nov 2014 16:24:10 +00:00
Indexing contour tables Hi Tim,

Quite a few months ago Mayflymedia put up a blog post about speeding up Contour by adding non-clustered indexes on certain guids (as seen here

Do you have an update script available or could you specify which fields I would need to index. It would be useful to know so I don't have to index them all and then have a bigger rebuild job than necessary.

Cheers Simon

Simon Hewitt Fri, 03 Oct 2014 11:33:34 +00:00
Request error: The URL returned a 404 (not found) Installed the package in two Umbraco 7.1.4 installations, however, I get the following red error displayed.

Request error: The URL returned a 404 (not found):

The URL /Umbraco/BackOffice/TraceLogViewer/TraceLog/GetLogDat, as stated in the controller, returns the right data. How can this be explained?

marcelh Fri, 29 Aug 2014 12:48:19 +00:00
Login failed for user in Umbraco 7 Hi All,

I'm having an issue with Umbraco 7.1 (developing on localhost), with which I can't login to the Umbraco UI and I receive the message "Login failed for user MyUser". Using developers tools I also get the error "Failed to load resource: the server responded with a status of 400 (Bad Request) http://mysite.local/umbraco/backoffice/UmbracoApi/Authentication/PostLogin

Is this something to do with using localhost maybe or is there another reason? A few other people have had what seems the same issue but none of those threads have a conclusion, so I was hoping there might be an update on the issue at this point?

I've tried fresh installs of versions Umbraco 7.1 & 7.1.1 with MySQL 5.6, .NET Framework 4.5.1 & IIS7. I've also tried it in Chrome and Firefox browsers as I heard Chrome can have issues with caching. Any help would be really appreciated.

Kind Regards

pronto Tue, 29 Apr 2014 16:41:23 +00:00
Umbraco 7 + Dewd Is there any plans for adding Umbraco 7 support to Dewd?

This module is realy great, and have saved me a lot of time!


Jonas Nilsson Mon, 23 Dec 2013 11:12:43 +00:00
From 6 to 7 (rc) Hello,

I'm trying to migrate an Umbraco 6 to 7.

So far a lot seems to still work.

But my Settings section/DataTypes crashes:

Does anyone have any additional info for migrating? 

Much appreciated!



nojaf Fri, 08 Nov 2013 13:52:14 +00:00