4

I have implemented a GUI Extension in Web 8.1 to add new column in DashboardView for last published date. The functionality is working fine but after implementation, when I open CMS Pages and Components are stuck in loading state.

Could not found any error log in core.log and event viewer log.

Refer Below screen short.

enter image description here

enter image description here

Note: I have deployed same extension on Web 8.5 and it's working fine there but not working on client server Web 8.1.

Any pointer will be highly appreciated

Console error log for page and component.

enter image description here

enter image description here

Editor.Config

<?xml version="1.0"?>
<Configuration xmlns="http://www.sdltridion.com/2009/GUI/Configuration/Merge"
               xmlns:cfg="http://www.sdltridion.com/2009/GUI/Configuration"
                             xmlns:ext="http://www.sdltridion.com/2009/GUI/extensions"
               xmlns:cmenu="http://www.sdltridion.com/2009/GUI/extensions/ContextMenu">

  <resources cache="true">
    <cfg:filters />
    <cfg:groups>
      <cfg:group name="Com.Tridion.PS.Extensions.UI.Model" merger="Tridion.Web.UI.Core.Configuration.Resources.DomainModelProcessor" merge="always">
        <cfg:domainmodel name="Com.Tridion.PS.Extensions.UI.Model">
          <cfg:fileset>
            <cfg:file type="script">/Scripts/ExtendedPage.js</cfg:file>
            <cfg:file type="script">/Scripts/ExtendedComponent.js</cfg:file>
          </cfg:fileset>
          <!-- <cfg:dependencies>
            <cfg:dependency>Tridion.Web.UI.Editors.CME</cfg:dependency>
            <cfg:dependency>Tridion.Web.UI.Editors.CME.commands</cfg:dependency> -->
          <!--<cfg:dependency>Example.UiCoreService.Editor.Base</cfg:dependency> -->
          <!-- </cfg:dependencies> -->
          <cfg:services />
        </cfg:domainmodel>
      </cfg:group>
    </cfg:groups>
  </resources>
  <definitionfiles />

  <extensions>
    <ext:dataextenders>
      <ext:dataextender name="MyGuiDataExtender" type="CustomDataExtender.GuiDataExtender,CustomDataExtender">
        <ext:description>
          Shows extra info
        </ext:description>
      </ext:dataextender>
    </ext:dataextenders>
    <ext:modelextensions>
      <cfg:itemtypes>
        <cfg:itemtype id="tcm:16" implementation="Com.Tridion.PS.Extensions.UI.ExtendedComponent" />
        <cfg:itemtype id="tcm:64" implementation="Com.Tridion.PS.Extensions.UI.ExtendedPage" />
      </cfg:itemtypes>
    </ext:modelextensions>
    <ext:editorextensions>
      <ext:editorextension target="CME">
        <ext:editurls/>
        <ext:listdefinitions/>
        <ext:taskbars/>
        <ext:commands/>
        <ext:commandextensions/>
        <ext:contextmenus/>
        <ext:lists>
          <ext:add>
            <ext:extension name="CustomColumnExtender" assignid="CustomDataColumnExtender">
              <ext:listDefinition>
                <ext:selectornamespaces/>
                <ext:columns>
                  <column xmlns="http://www.sdltridion.com/2009/GUI/extensions/List" id="CustomData" type="data"  title="LastPublished" selector="@ExtendedInfo" translate="String"/>
                </ext:columns>
              </ext:listDefinition>
              <ext:apply>
                <ext:view name="DashboardView" />
              </ext:apply>
            </ext:extension>
          </ext:add>
        </ext:lists>
        <ext:tabpages/>
        <ext:toolbars/>
        <ext:ribbontoolbars/>
      </ext:editorextension>
    </ext:editorextensions>
  </extensions>
 <commands/>
  <contextmenus />
  <localization />
  <settings>
    <defaultpage/>
    <!-- /Views/Default.aspx</defaultpage> -->
    <navigatorurl/>
    <!-- /Views/Default.aspx</navigatorurl> -->
    <editurls/>
    <listdefinitions />
    <itemicons />
    <theme>
      <path>/Theme/</path>
    </theme>
    <customconfiguration>
      <clientconfiguration/>
    </customconfiguration>
  </settings>
</Configuration>
8
  • The JS file for your GUI extension might cause the issue. It's executing some code which is preventing the content loading. Please check your code in JS file Commented Aug 10, 2017 at 7:33
  • Please check console for any JS related error.
    – Hem Kant
    Commented Aug 10, 2017 at 7:38
  • Please check editior.config and share the console error log. Commented Aug 10, 2017 at 16:32
  • To enable trace on the CMS and see if there are any errors
    – Velmurugan
    Commented Aug 11, 2017 at 12:21
  • i think it`s editior.configuration issue. please check all reference. Commented Aug 11, 2017 at 19:16

2 Answers 2

2

Please find below namespace difference in sdl tridion 2013 and SDL WEB.

Changes in JavaScript namespaces

enter image description here

enter image description hereenter image description here

enter image description here

enter image description here

enter image description here

2
  • What do the colors imply in your screenshot? @BartKoopman also sums up a few more references in this answer: tridion.stackexchange.com/a/16915/46. Commented Aug 16, 2017 at 17:35
  • @Alvin, highlighted(green) items using most of my project references. Commented Aug 16, 2017 at 18:38
1

Please update Editor.Config dependency reference namespaces as per sdl web 8.1

 <!-- <cfg:dependencies>
          <cfg:dependency>SDL.Web.UI.Editors.CME</cfg:dependency>
          <cfg:dependency>SDL.Web.UI.Editors.CME.CommandSets.All</cfg:dependency>
          <!--<cfg:dependency>Example.UiCoreService.Editor.Base</cfg:dependency> -->
 <!-- </cfg:dependencies> -->

**Update js the Reference namespaces. **/Scripts/ExtendedPage.js /Scripts/ExtendedComponent.js****

Tridion.Type.registerNamespace("TEST.Tridion.RTFExtensions");
Tridion.OO.enableInterface(this, "TEST.Tridion.RTFExtensions.ComponentEx");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.