I have created Gui Extension and I use jQuery in command javascript.
I have $j
selector instead of $
.
It works in three environment but doesn't work in one (the 4th). I have the following error
ReferenceError: $j is not defined
I didn't explicitly reference jquery in my Gui Extension. This is what I have in my config:
<resources cache="true">
<cfg:filters/>
<cfg:groups>
<cfg:group name="Archive.ConfigSet" merger="Tridion.Web.UI.Core.Configuration.Resources.CommandGroupProcessor" merge="always">
<cfg:fileset>
<cfg:file type="style">{ThemePath}/Archiving.css</cfg:file>
<cfg:file type="script">/Commands/ArchiveCommand.js</cfg:file>
<cfg:file type="reference">Archive.Interface</cfg:file>
<cfg:file type="script">/Users.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:dependencies>
</cfg:group>
<cfg:group name="Unarchive.ConfigSet" merger="Tridion.Web.UI.Core.Configuration.Resources.CommandGroupProcessor" merge="always">
<cfg:fileset>
<cfg:file type="style">{ThemePath}/Archiving.css</cfg:file>
<cfg:file type="script">/Commands/UnarchiveCommand.js</cfg:file>
<cfg:file type="reference">Unarchive.Interface</cfg:file>
<cfg:file type="script">/Users.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:dependencies>
</cfg:group>
</cfg:groups>
I have tried to add jquery.js to this config (based on this article) but I got exception that item with same id is already added.
I cannot find differences between environment. Do you have any idea what could be the problem?