Are there, or is there a checklist that you use for any Weekly/Monthly Maintenance tasks that you perform on Umbraco to ensure stability and performance on the CMS?
Monthly Maintenance
How to get 3 values using KeyValuePair
Hi All,
Sorry for noob question.
Here is my problem, how can I get the image url
for each product?
System.Web.Http.HttpGet]
public List<KeyValuePair<int, string>> ComparisonKeyValues(string ids)
{
if (!string.IsNullOrEmpty(ids))
{
var nodes = ids.Split(',').ToList().TypedContentList();
return nodes.Select(x => new KeyValuePair<int, string>(x.Id, x.GetPropertyValue<string>("title"))).ToList();
// I want to get also the x.GetPropertyValue<string>(productImage).Url
}
return new List<KeyValuePair<int, string>>();
}
Any help for this?
Thanks in advance.
I am new in C#, and also in Umbraco.
Jin
Ajax without backend
Hi,
I want to create simple ajax script for my gallery, that will load images in small parts after click on the button.
Now I can get them by: Model.GetPropertyValue<IEnumerable<IPublishedContent>>("galleryItems");
Its nested content.
Question 1: Is it possible, to do ajax query, without access to source code? Currently I have access only to umbraco panel and ftp files. Which url should I use, to get data in smaller parts?
Question 2: Is it possible, to copy release version from ftp to new solution and extend it? For example by new controllers?
footer text just won't show up. What can I do
Hi. I am starting the footer section on my website. There is a text and social icons. When I use @ Umbraco.Field ("") the text will appear on the front page but not the rest of the pages. It is even though it is on my master page. I have tried to make only a doctype without template and I have tried to do a doctype with template. I have also tried to make a partial view. No matter what I do, the footer text only appears on the front page.
what to do :D
Here is my masterpage
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="da" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="title" content="@Umbraco.Field("seoTitel")">
<meta name="description" content="@Umbraco.Field("seoBeskrivelse")">
<meta name="author" content="@Umbraco.Field("creatorName")">
<title>@Umbraco.Field("pageName")</title>
<!-- Bootstrap core CSS -->
<link href="~/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="~/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<!-- Custom styles for this template -->
<link href="~/css/agency.min.css" rel="stylesheet">
<link href="~/css/kontakt-form.css" rel="stylesheet" />
<link href="~/css/default.css" rel="stylesheet" />
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="/">WebManden</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
@{
var selection = Model.Content.Site().Children()
.Where(x => x.IsVisible());
}
<ul class="navbar-nav text-uppercase ml-auto">
@foreach (var item in selection)
{
<li class="nav-item">
<a href="@item.Url" class="nav-link js-scroll-trigger">@item.Name</a>
</li>
}
</ul>
</div>
</div>
</nav><div id="content-placeholder">
@RenderBody()
</div>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<span class="copyright">@Umbraco.Field("footerText")</span>
</div>
<div class="col-md-4">
<ul class="list-inline social-buttons">
<li class="list-inline-item">
<a href="#">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-linkedin-in"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-4">
<ul class="list-inline quicklinks">
<li class="list-inline-item">
<a href="#">Privacy Policy</a>
</li>
<li class="list-inline-item">
<a href="#">Terms of Use</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript -->
<script src="~/Scripts/theme-js/jquery.min.js"></script>
<script src="~/Scripts/theme-js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="~/Scripts/theme-js/jquery.easing.min.js"></script>
<!-- Contact form JavaScript -->
<script src="~/Scripts/theme-js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
<!-- Custom scripts for this template -->
<script src="~/Scripts/theme-js/agency.js"></script>
<script src="~/Scripts/theme-js/agency.min.js"></script>
</body>
</html>
umbraco irc channel
Hi,
Is there a Umbraco IRC channel?
Merchello with 1:1 Multi-language site
Hi,
I am looking into creating a 1:1 multi-language site which also uses Merchello. Is there any way that I can retrieve the product properties in the other languages? I realise I can use: product.SpecifyCulture(languageISO); but that seems to set the culture for the product itself and I need to unset at the end of the partial view which isn't really going to work too well.
Thank you,
Best regards,
Steve
CSharp version 6
Is it possible to configure an Umbraco 7 site to compile the templates/views using c# 6? If yes, how?
What if the site is hosted on the Umbraco Cloud?
How do I implement two SUBMIT buttons (or more in the same partial view) hitting the same Surface controller?
Hi everybody. I'm a rookie to MVC 5 and Umbraco 7 still on my first week and my first project. Here I ran into a issue ... I'll try to explain myself.
I have a single partial view in which I can submit some data - which works fine. Now, the problem is that I need to extend my business logic and provide the ability to delete the very same object? Here is some code snippet:
My Controller looks like this ....
public class AddressSurfaceController : SurfaceController
{
public ActionResult RenderForm(Address dto)
{
return PartialView($"~/Views/Partials/Customer/_AddressSurface.cshtml", dto);
}
[HttpPost]
public ActionResult SubmitForm(Address dto)
{
if (!ModelState.IsValid)
{
return CurrentUmbracoPage();
}
if (dto != null)
{
new CustomerRepository().SaveAdressDto(dto);
}
return RedirectToCurrentUmbracoPage();
}
[HttpPost]
public ActionResult Submit(Address dto)
{
if (!ModelState.IsValid)
{
return CurrentUmbracoPage();
}
if (dto != null)
{
new CustomerRepository().SaveAdressDto(dto);
}
return RedirectToCurrentUmbracoPage();
}
[HttpPost]
public ActionResult Delete(Address dto)
{
if (!ModelState.IsValid)
{
return CurrentUmbracoPage();
}
if (dto != null)
{
new CustomerRepository().DeleteAddressDto(dto);
}
return RedirectToCurrentUmbracoPage();
}
}
And my Partial View looks like this (some lines delete for better overview) ....
@using IKAS.Mainsite.Website.Models.Customers
@inherits UmbracoViewPage<Address>
@using (Html.BeginUmbracoForm("SubmitForm", "AddressSurface", "Test", FormMethod.Post))
{
<table>
<tr style="height: 0; visibility: hidden">
<td>@Html.TextBoxFor(m => m.Id)</td>
</tr>
<tr style="height: 0; visibility: hidden">
<td>@Html.TextBoxFor(m => m.CustomerId)</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>@Html.Label("Postnr")</td>
<td>@Html.Label("By")</td>
<td></td>
</tr>
<tr>
<td>@Html.TextBoxFor(m => m.ZipCode, new { style = "width:50px;" })</td>
<td>@Html.TextBoxFor(m => m.City, new { style = "width:190px;" })</td>
<td>@Html.ValidationMessageFor(m => m.ZipCode)@Html.ValidationMessageFor(m => m.City)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<br />
<p>
<input type="submit" formaction=@Url.Action("Submit") formmethod="post" class="btn btn-primary" />
<input type="submit" formaction=@Url.Action("Delete") formmethod="post" class="btn btn-danger" />
<button>submit</button>
</p>
</td>
</tr>
</table>
}
Now, the last submit button actually hits the public ActionResult SubmitForm(Address dto)
as expected :-)
But if I try one of the other two buttons like <input type="submit" formaction=@Url.Action("Submit") formmethod="post" class="btn btn-primary" />
or <input type="submit" formaction=@Url.Action("Delete") formmethod="post" class="btn btn-danger" />
I do hit the public function in my controller ...
... but can't be redirected back to the Partial View !!! I get this exception {"Cannot find the Umbraco route definition in the route values, the request must be made in the context of an Umbraco request"}
Could anyone please direct me in the right way?
Thank in advance.
Bug on "Merge Tags" - Corrupted Property data
I am using Tag Manager in a brand new Umbraco version 7.12.4 site. I noticed something strange when using the "Merge Tags" option - the tag property actually gets corrupted on the content node.
For example, I have a tag which is assigned to a content node's property. In Tag Manager I go tot hat tag and "Merge Tags" to another existing tag ("Culture"). When I look at the content node, this is what I see:
When attempting to access this data (in a content model or view), a JSON error is returned. I am unable to use the little trash icons on the property to delete these non-tags. The only way to get rid of the corruption is to programmatically use the ContentService to set a new value on the property.
The tags property datatype is using the JSON storage method.
Create a property editor that displays some current page property values
Hi,
I'm trying to create a custom property editor that shows images from the current page... is there a way to do that ???
can someone help me.
Upgrade from 4 -> path and potential issues
I inherited a site. Yeah, its made with Umbraco and even worse with ASP... never used ASP. Ah well, its code and database, I'll figure it out. ;)
I will need to get back on this, but my intention is to get the site up to date and during the upgrade process I may stumble over a number of problems, but the main concern is basic static page content, nothing fancy, just text and images. Starting off following this path unless I see any issues related to the versions: https://our.umbraco.com/documentation/Getting-Started/Setup/Upgrading/version-specific
I will of course find out more details about the site, I know you will ask, but rest assured I have done these things before and I am not overly worried since Umbraco is alive and well, with continued development and what seems like a great community support.
The most relevant question right now is do I risk having to redo the site during upgrade or will the pages content remain in place? The layout is rather simple, but I need to get a grip of it of course. Styles/Themes may have been abandoned over time.
Anyone of you familiar with this task?
May the force be with you. Now to find out how I set up an ASP testing environment, tips? I am used to www.apachefriends.org/index.html but don't have much experience with IIS...
umbraco 7.13.1 slow on Azure
i have a strange issue where content of different templates load slow the first time. so say i have a "product" template, the first product page i load will take something like 30 seconds but after that, all products will load quickly (<2 seconds). this goes for all different types of templates. the first time loads extremely slowly and then all content of that template loads quickly thereafter (with the odd exception).
interestingly, this delay happens even with empty templates (i did this for testing purposes).
it's like each template is being compiled. is there anything i can do about this?
here is somebody else with the same problem https://our.umbraco.com/forum/templates-partial-views-and-macros/80840-different-templates-slow-on-first-load-umbraco-7-with-azure-hosting
thanks, Simon
--edit-- just tested the same site on AWS using a t2.medium instance (whereas i'm using s3 on azure) and it's much faster on AWS. the same issue is apparent in terms of a template taking longer to render on first attempt but it's much quicker. the same pages take 15 seconds on azure and 4 seconds on AWS. after initial template load, both environments load the content pages in less than a second.
Version 7.13 and codedom compilers
Since Umbraco version 7.13 the package became dependant of the Microsoft.CodeDom.Providers.DotNetCompilerPlatform (>= 2.0.0 && < 3.0.0)
But for most of the hosting providers, this is a problem. In the past i used to uninstall the codedom package, because this is trying to push a few .EXE files onto the server that are prohibitted.
I don't know how i can solve this now. The provider i am using is Combell.com
Is anyone who knows how i can move on to the 7.13 of umbraco? because now i am not able to publish when using a version higher of 7.12
Exception of type 'System.ExecutionEngineException' was thrown
An exception of type 'System.ExecutionEngineException' was thrown at early bootup of Umbraco caught in OnApplicationStarted event.
System.ExecutionEngineException HResult=0x80131506 Message=Exception of type 'System.ExecutionEngineException' was thrown.
Detailed info:
https://github.com/umbraco/Umbraco-CMS/issues/4493#issue-408433240
It looks like it's related to ImageProcessor, but I can't figure out.
Does anyone have any clue?
CS0029: Cannot implicitly convert type 'int' to 'System.Web.IHtmlString'
Hello guys ,
I do get error message when I try to do If equal then ..
CS0029: Cannot implicitly convert type 'int' to 'System.Web.IHtmlString'
Code:
var test = @Umbraco.Field("test");
@if (test = 1 ){
.....
} else { .... }
In backoffice is used Umbraco.Decimal editor for that test property.
Could someone help to make it work ?
Thank you
Invalid object name 'ns_Newsletters' on Umbraco Cloud
Hi all.
We are running Umbraco Cloud 7.13.2 with NewsletterStudio 2.1.9.4. Locally it works. On live enviroment we get this error:
2019-02-07 00:01:27,316 [P67480/D4/T41] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'ns_Newsletters'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at NewsletterStudio.Infrastucture.Data.PetaPoco.Database.<Query>d__66`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at NewsletterStudio.Infrastucture.Data.PetaPoco.Database.Fetch[T](String sql, Object[] args)
at NewsletterStudio.Infrastucture.Data.PPDatabaseAdaptor.Fetch[T](String sql, Object[] obj)
at NewsletterStudio.Infrastucture.Data.NewsletterRepository.GetScheduledThatShouldBeSent()
at NewsletterStudio.App_Plugins.NewsletterStudio.Controllers.ActionsController.NewsletterCheckForScheduledSendOut()
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ClientConnectionId:e90c1e48-333a-44b4-b5a9-2ebe497d8339
Error Number:208,State:1,Class:16
ClientConnectionId before routing:5d753e7a-ea18-494e-af2e-86b0c1010c1f
Routing Destination:f61baab02861.tr604.westeurope1-a.worker.database.windows.net,11028
My guess is that the table is not created on Cloud. But how can i force it to be created? or is it a NewsletterStudio bug?
Video asking me to log in when I'm already logged in
Hello,
I just signed up for an account on umbraco.tv so that I can watch the tutorial videos. I paid $20 US. However, I'm not able to watch the videos. When I select a video to watch, I see this:
But I'm already logged in. When I click on Log in, I'm taken to https://umbraco.tv/ where, again, it seems like I'm already logged in. I search for the video in the search bar, find it, click on it, and I'm taken right back to the first page where it's asking me to log in to see the video.
Anybody else have this problem? Did I waste my money?
Why sub-pages?
Hello,
I'm going through the built-in tutorial that gets shipped with Umbraco. Slide 4 of 12 of "The Content Section" shows how the website consists of the Home page and several pages under that:
But on the website itself, it just looks like a series of pages:
Why are all the pages considered "sub-pages" of the home page?
Confused about create items
Hello,
I'm very confused about the Create menu. When I click on the three little dots next to the Home menu item, I see this:
It says "Create an item under Home" and it lists:
Blog, Contact, Content Page, People, Products
Where does it get these items from? As you can see in the screen shot above, it's a very similar list to the items under Home:
Products, People, About Us, Blog, Contact, My Page, My Page (1), People 2
But they aren't exactly the same. The Create menu doesn't contain About Us. The items under Home don't contain Content Page. So the items in the Create menu can't just be a copy of the items under Home.
Then there's the document Types:
Again it's almost the same but not quite. Blogpost exists under document types but not under the create menu. So the items under the create menu can't just be the document types.
Where do the items under the create menu come from?
how to hide content already selected from Dialog treepicker?
Is there a way to add preselected contents when showing the tree? I don't want to show items that are already been selected previously.
var dialogOptions = {
show: true,
multiPicker: true,
view: "treepicker",
section: 'content',
treeAlias: 'content',
// selection: vm.dialogPreSelectContents,
startNodeId: $scope.dialogData.config.startNode,
submit: function (model) {
vm.overlay.show = false;
vm.overlay = null;
vm.contents = model.selection;
// Append Toggle to object
vm.appendToggle();
},
close: function (oldModel) {
vm.overlay.show = false;
vm.overlay = null;
}
};