Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arjan H. 142 posts 275 karma points
    Jan 15, 2014 @ 21:59
    Arjan H.
    0

    Any reason why it wouldn't work on Umbraco 6.1.6?

    I'm running Umbraco 6.1.6 on IIS 7 (Windows 2008). I've installed Cultiv EnvironmentIndicator v1.0.2. The .dll is present in the /bin directory, the .browser file is present in the /App_Browsers directory, and I've added the following appSettings key to the web.config:

    <add key="environment" value="dev" />

    I'm not seeing any errors, but I'm also not seeing the indicator?

  • Arjan H. 142 posts 275 karma points
    Jan 15, 2014 @ 22:22
    Arjan H.
    0

    Also, I checked your assembly code with .NET Reflector, and I noticed a small type-o:

    string str4 = string.Format("<div style=\"height: 3px; widht: 100%; background-color: {0};\"><span style=\"font-size: 1px; line-height: 1px;\">&nbsp;</span></div>", str3);

    "widht: 100%" should be "width: 100%".

  • Arjan H. 142 posts 275 karma points
    Jan 16, 2014 @ 12:43
    Arjan H.
    100

    To make the package work in Umbraco 6 the cultiv.environment.browser file should be updated:

    <browsers>
      <browser refID="Default">
        <controlAdapters>
          <adapter controlType="Umbraco.Web.UI.Pages.UmbracoEnsuredPage" adapterType="Cultiv.EnvironmentIndicator.IndicatorAdapter" />
        </controlAdapters>
      </browser>
    </browsers>
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies