Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

How to install Umbraco in Docker Container

$
0
0

I am trying to get the latest version of Umbraco in a Docker container. I want to be able to have a canned copy of the latest version, already installed that we can spin up and hand off to new developers to kick the tires and learn.

I found a couple copies in Docker Hub but they are both older versions and don't run quite right as they need updating. Does anyone have a Docker copy with the latest Umbraco 7? Anyone have instructions on how I can easily update one of the existing ones?


Sort of nodes by each nodes nested content property value

$
0
0

Hi,

I'm trying to sort a number of nodes based upon each nodes nested content property value but I am failing miserable...

  • Node
    • nested content property "startDate"
  • Node
    • nested content property "startDate"
  • Node
    • nested content property "startDate"

Removing "Allowed child node types"

$
0
0

Hello.

I have added a blog (blog4umbraco) on a site but do not want editors to be able to add new childitems of type Blog to the site. Can I safely remove "Blog" from the "Allowed Child node types" under my Startpage-documenttype - without umbraco deleting the allready existing blog?

/D

Error during upgradation - Umbraco v4.7.1 to v7.4.1

$
0
0

The database failed to upgrade. ERROR: The database configuration failed with the following message: 'System.Dynamic.ExpandoObject' does not contain a definition for 'NodeId' Please check log file for additional information (can be found in '/App_Data/Logs/UmbracoTraceLog.txt')

Upgradation Error

SmartBlog on Umbraco 7.12.1

$
0
0

Hi,

I'm running Umbraco version 7.12.1 and SmartBlog 2.2.1.

In order to get it working I have done some fixes to SmartListTags.cshtml and SmartListCategories.cshtml.

Everything seems to work fine except the SmartBlog Manager. getPropertyValue() and getPost() in smartBlogManagement.asx returns "System.NullReferenceException: 'Object reference not set to an instance of an object.'"

smartBlogManagement.asx

<td><%# getPropertyValue(Convert.ToInt32(Eval("id")), "smartBlogName")%></td>
<td><%# getPropertyValue(Convert.ToInt32(Eval("id")), "smartBlogComment")%></td>
<<td><%# getPost(Convert.ToInt32(Eval("id"))).GetProperty("smartBlogTitle").Value %></td>

Fixes:

SmartListTags.cshtml

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using System.Web.Mvc.Html;
@using Umbraco.Web;
@using Umbraco.Core.Models;
@{
    // Get this blogs root, does not use an id because there may be more thanone blog
    IPublishedContent objBlogRoot = Model.Content.AncestorOrSelf("SmartBlogBlog");

    // Get the posts in this blog
    IEnumerable<IPublishedContent> colPosts = objBlogRoot.Descendants("SmartBlogPost");
    // Create the tag dictionary
    Dictionary<String, Int32> colTagList = new Dictionary<String, Int32>();

    // Loop through all the posts then loop through their tags to add to the tag dictionary
    //foreach (IPublishedContent objPost in colPosts.Where(x => !String.IsNullOrEmpty(x.GetPropertyValue<String>("smartBlogTags"))))
    foreach (IPublishedContent objPost in colPosts.Where(x => !String.IsNullOrEmpty(x.GetPropertyValue<String>("smartBlogTags"))))
    {
        foreach (String strTag in (String[])objPost.GetPropertyValue("smartBlogTags"))
        {
            if (!String.IsNullOrEmpty(strTag))
            {
                if (colTagList.ContainsKey(strTag))
                {
                    colTagList[strTag]++;
                }
                else
                {
                    colTagList.Add(strTag, 1);
                }
            }
        }
    }

    <span class="smartSubTitle">Tags</span><br />

    // Loop through the tag dictionary showing most used first
    <div class="smartRightLowSectionContainer">
        @foreach (KeyValuePair<String, Int32> objTag in colTagList.OrderByDescending(x => x.Value))
        {
            //Deal with the tag
            <a class="smartTag tag-@objTag.Value" href="@Umbraco.NiceUrl(objBlogRoot.Id)?tag=@objTag.Key">
                @objTag.Key
            </a><span style="color: #666;">&nbsp;&#40;@objTag.Value&#41;</span><br />
        }
    </div>
}

SmartListCategories.cshtml

@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
@using System.Web.Mvc.Html;
@using Umbraco.Web;
@{
    // Get this blogs root, does not use an id because there may be more thanone blog
    IPublishedContent objBlogRoot = Model.Content.AncestorOrSelf("SmartBlogBlog");

    // Get the posts in this blog
    IEnumerable<IPublishedContent> colPosts = objBlogRoot.Descendants("SmartBlogPost").OrderBy("updateDate");

    // Create the tag dictionary
    Dictionary<String, Int32> colCategories = new Dictionary<String, Int32>();

    // Loop through all the posts then loop through their tags to add to the tag dictionary
    foreach (IPublishedContent objPost in colPosts)
    {
        foreach (var strCategory in objPost.GetPropertyValue<IEnumerable<string>>("smartBlogCategory"))
        {
            if (colCategories.ContainsKey(strCategory))
            {
                colCategories[strCategory]++;
            }
            else
            {
                colCategories.Add(strCategory, 1);
            }
        }
    }

    <span class="smartSubTitle smartTopBorder">Categories</span><br />

    // Loop through the tag dictionary
    foreach (KeyValuePair<string, int> objCategory in colCategories)
    {
        //Deal with the tag
        <a class="smartCategory" href="@Umbraco.NiceUrl(objBlogRoot.Id)?category=@objCategory.Key">@objCategory.Key</a><br />
    }

}

Configuring Umbraco 7.3 Courier 2.5 overwrite settings for multiple servers

$
0
0

Hello,

We have courier 2.5 on Umbraco 7.3 syncing up Staging to Production. When Dev was added I updated Staging to also sync down to Dev, but we need to be able to sync certain content from Dev to Staging safely too. Mainly Doc types and Data types. The idea is, content should originate in Staging, but development of new document types or updates should originate in Dev. This keeps Staging syncable to Production for content editors while developers tweak Dev, keeping unwanted artifacts from appearing in Production. Once dev is done it may be synced to Staging, content updated in Staging, then synced to Production. I think I may be able to get away with this by modifying the 'Config\courier.config' overwrite settings on Dev from 'Compare' to 'Never', but I have been unable to find any documentation on them and I don't want to flip a switch to see what happens in the wild. Thanks

I didn't get the right answer from the internet. References: - http://stackoverflow.com/questions/39732794/configuring-umbraco-7-3-courier-2-5-overwrite-settings-for-multiple-servers -  product animation

Event Handler on Document Node

$
0
0

Is there any event handler that trigger when click or open a Document node?

Courier and Azure DevOps practices

$
0
0

Hello,

I was wondering as to what do you guys do with Courier and DevOps. I have Courier set up with CI and QA, but it seems like it's not in the packages.config. So how do you deploy a new version? Do you just have the dlls and copy/paste them in the environment or do you add it to packages.config and restore the package?

Also, if you do that, does it reset the environments under <repositories> in its config file?

Thanks

Harry


No 404 shown for unpublished

$
0
0

Hi,

When reaching an unpublished or deleted page, I get a white blank page. 404 error page only shows when the address has never existed. How can I force the unpublished or deleted page to trigger 404?

I'm using Umbraco version 7.5.6 assembly: 1.0.6185.24083, running on IIS 7.5.

Thanks :) Ramin

Sorting Variants once added to a product

$
0
0

Umbraco 7.4.2, TC v3.1.1

Adding Variants to a Product is a less than ideal process - even more so if we want to add / alter it afterwards.

The 2 variants we have are colour and size. The variants are stored in Umbraco in the desired order (visually), however it seems as though TeaCommerce sorts them in NodeId order, which may be different.

So, the first question is - can I make TC respect / retain the Umbraco defined order when selecting Variants?

Secondly, once the variants have been added to a Product, there is no way of changing the order of them. This is especially a problem if a new Variant is added as I cannot put it in the right place.

Creating licenses

$
0
0

Hi,

I asked the devs of umbraco for an explenation about how to create and validate licenses for packages created by the company i work for.

The Umbraco devs redirected me to you and two other licensed umbraco package devs.

Now is my question if i can get an explenation on how to do licensing for packages and if you are willing to explain it.

regards,

Nick

Website down every day for a few minutes recurrently Umbraco 7.6.3 :(

$
0
0

Hi all, We are facing a serious issue because my website is getting this error every day on slave server on distributed environment. I'm using Umbraco 7.6.3 on Azure. About a week ago my website is down everyday and I only get this weird error on logs and I don't know what is happening on the app. The app availability is down for a couple of minutes and it keeps continue. How can we fix this?

2019-02-11 05:23:51,471 [P2188/D2/T43] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://{{websitedomain}}/umbraco").
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Umbraco.Web.Scheduling.KeepAlive.<PerformRunAsync>d__4.MoveNext()
 2019-02-11 05:30:31,517 [P2188/D2/T48] ERROR Umbraco.Web.Scheduling.KeepAlive - Failed (at "https://{{websitedomain}}/umbraco").
System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Umbraco.Web.Scheduling.KeepAlive.<PerformRunAsync>d__4.MoveNext()

Than you.

Formulate and Barba.js Page transitions

$
0
0

Hi,

I have recently started using the latest version of Formulate instead of Umbraco Forms on an existing website and am having one issue due to what I assume is an issue of compatibility with another feature of the website.

I am using a JavaScript plugin called Barba.js to smooth out page transitions through fades. Barba achieves by loading pages in containers. It achieves transitions through loading a container with the requested page, fading the current page out, loading the new page and fading back in. So technically no full page navigation takes place. As a result any JavaScript methods that run on page load have to be manually loaded again through Barba's callback.

I currently have a simple form using plain JS (I have tried using the angularJS provided also) setup containing one field and button that sends an email out currently rendered to the page on load. This form exists on all my pages which works on first load or refresh. On page transition the new page is loaded but the new form is not rendered.

I have tried running the required JS file on Barba.js's callback (or just manually) but no form renders. I have not been able to get a form to render after a page transition.

Is there a function or anyway to force the rendering of a form? Is there some variables that need to be cleared to allow the plain js to be ran again?

Kind Regards, Lewis

Routes error

$
0
0

Hi Nathan, thanks for what looks like a great package! We're trying it out for a new project and ran into a snag after initial install. The error:


[ArgumentException: A route named 'umbraco-api-Settings' is already in the route collection. Route names must be unique. Parameter name: name] System.Web.Routing.RouteCollection.Add(String name, RouteBase item) +391 System.Web.Http.RouteCollectionExtensions.MapHttpRoute(RouteCollection routes, String name, String routeTemplate, Object defaults, Object constraints, HttpMessageHandler handler) +211 Umbraco.Web.RouteCollectionExtensions.MapHttpRoute(RouteCollection routes, String name, String url, Object defaults, String[] namespaces) +23 Umbraco.Web.WebBootManager.RouteLocalApiController(Type controller, String umbracoPath) +347 Umbraco.Web.WebBootManager.RoutePluginControllers() +442 Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete) +125 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +381


But I don't see any such route in your source. Have you seen this in the past?

Thanks you kindly!

-- Nik

ImageProcessor.Web Not Resizing Images with Query String

$
0
0

In short, none of the images on a site I'm building can be resized with ImageProcessor. Here's one such image: https://nicholaswestby.box.com/s/12plmqwaoinxe94lfj62jxt0u62vqzei

Same image:

Random FP Image

When I attach "?width=50" (using any number), the original image is served up rather than a resized image. This resizing works fine on other sites (even ones with the same Umbraco version).

When I try to resize an image, there are no error log entries created.

I still have a few things to try (upgrade ImageProcessor, compare to other installs, etc.), but if anybody has run into this in the meantime I'd appreciate it.

Some notable things about this project that may impact image resizing:

  • We're using dependency injection (Autofac).
  • We upgrade to .Net 4.7.2.
  • We've password-protected the entire site (using IIS users).

Version numbers:

  • Umbraco 7.13.2
  • ImageProcessor 2.6.2.25
  • ImageProcessor.Web 4.9.3.25
  • ImageProcessor.Web.Config 2.4.0
  • ImageProcessor.Web.PostProcesor 1.3.1.25

Users and members: best practices

$
0
0

Hi.

Are there any best practices or things to know when it comes to using and extending Umbraco's membership systems, and choosing which one to use?

I'm looking at using Umbraco's user/member auth system for an application that involves a bunch of portals/intranet type things that are managed by a customer.

  • The customer is an administrator of their portal.
  • Generally they'll view and maybe edit a bit of content
  • They can also administer some data thats actually on a remote system that I have Umbraco talking to

Should these customers be "Users" in Umbraco (but have their CMS access disabled), or is it more accepted to use the "Members" system instead, for all cases that don't involve the backoffice?

How do I edit aliases

$
0
0

Hello,

I need a little help with document types. I've created three properties inside a tab:

enter image description here

How do I change the aliases? I would like to changes the aliases couples and group to be dailycouple and dailygroup respectively (to match dailyindividual above). When I open the edit dialog for the property, however, the alias seems to be read only:

enter image description here

How to get the multiple IDs in Examine

$
0
0

Hi guys,

How can I get this three (3) ideas, and get their properties.

/// Umbraco/Api/Search/ComparisonKeyValues?ids=2874,2875,2876
public List<Compares> ComparisonKeyValues(string ids)
{
    // what should I put here...
}

Appreciate any help,

Thanks in advance,

Marky

Integration with Salesforce?

$
0
0

Contour boasts of it's connection abilities to Salesforce amongst others. But I can't seem to find any dokumentation describing how.

Plain and simple. How do I connect Contour with Salesforce (SFDC), so my form data ends up i SFDC?

I'm trying to connect using a Webservice Data Source, but it's not working. Probably because I'm using the wrong values, and I have tried a lot of combinations!

Is this the right way, or could someone help me out with some guidance? :)

 

Bulk edit property?

$
0
0

Any chance BulkManager will - in a future release - allow a user to bulk edit properties? Just like changing the Template, this would be hugely helpful!

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>