13 votes
Accepted

How can I access custom configuration settings in a GUI extension?

Server-side The XML is available through the ConfigurationManager object from Tridion.Web.UI.Core: XmlDocument myConfigurationXml = ConfigurationManager.Editors["MyEditor"].CustomXml Client-side ...
user avatar
  • 19.8k
12 votes
Accepted

javascript is not hitting from configuration file in GUI Extension

At quick glance, looks like you are adding the reference to your commandset from your resource group in the wrong place, you should add it like: <cfg:fileset> <cfg:file type="script">/...
user avatar
  • 2,926
10 votes

How to make the text area in CodeMirror extension fit the entire screen?

What I have been doing lately is changing the CodeMirror css files themselves to get it to become larger. In your extensions folder under CodeMirror\CSS\codemirror.css change the top 2 classes to the ...
user avatar
9 votes
Accepted

Filter by schema in a Browser popup

Assuming, you`re opening item select dialog (Tridion.Cme.Views.ItemSelectDialog) to select the component you are interested in, you need to specify a filter in dialog features. As an example when you ...
user avatar
  • 2,331
9 votes

GUI Extension | How to Customize views for GUI extension

Your logic for isEnabled and isAvailable is triggered around the selection variable, and in your case checking to see if the item selected is a component and that the number of items selected is at ...
user avatar
  • 2,926
9 votes
Accepted

How to get the Anguilla $models object in Chrome console

You need to ensure that you have first selected the correct frame in the console. It defaults to 'top frame' but you'll want to choose e.g. Dashboard.aspx. You'll know it's the right one when it helps ...
user avatar
  • 19.8k
9 votes

Experience manager Gui extensions, insert text into a field rather than replace

You probably need to look through InlineFormatArea.js and the Format Area Action commands (executeFAAction) You'll see that when in XM the necessary functions are called cross domain using the $xdm ...
user avatar
9 votes
Accepted

Opening a popup with Alchemy4Tridion framework

It appears that Alchemy does not yet pick up HTML files. Try creating it as an ASPX file instead. Static HTML files are often cached a little too aggressively by the browsers anyway, so you might want ...
user avatar
  • 19.8k
9 votes
Accepted

Is there an extension that can Export search result To Excel for Web 8?

You can also try the Export Item List alchemy plugin. It can be downloaded from here: https://www.alchemywebstore.com/plugins/Export-Item-List If you want to customize or extend it the code is also ...
user avatar
9 votes

GUI not rendering <br> and new line showing error messages

You would have to make CSS updates through a GUI extension besides using the new line (\n) in your exception message. In your event system exception, you will be using the new line like this: throw ...
user avatar
8 votes

Custom ItemSelectDialogView when called from component with a preset schema

You can do a little magic to customize the default ItemSelectDialog view after its loaded (assumption based on your comments with John Winter). First you'll want to create an extension group in your ...
user avatar
  • 2,926
8 votes
Accepted

Tridion cannot find my resources

As stated in the comments above, next to defining the resources files in the configuration, you should also move the dll of your GUI extension project to the Tridion\web\WebUI\WebRoot\bin folder. I ...
user avatar
8 votes
Accepted

How to check that component is multimedia component in Tridion GUI extension?

You can check if an item is a multimedia component with this code $models.getItem(itemId).isMultimedia() this will return true or false.
user avatar
8 votes
Accepted

How can I close $messages.registerWarning in Tridion 2013 SP1?

The issue is with your 4th parameter that you are passing to $messages.registerWarning... $messages.registerWarning("myTitle", "myDesc", null, true); // true is for isModal This is essentially ...
user avatar
  • 2,926
8 votes
Accepted

How to make the text area in CodeMirror extension fit the entire screen?

Apparently version 0.4 fixes the line height issue. See the CodeMirror repository on GitHub. Changes in v0.4 Installation script Fix bug with height of Source tab being limited to 21 ...
user avatar
  • 12.6k
8 votes
Accepted

Catch the publication list 'Refresh' event | GUI Extension

TreeControl does not fire load event, you can handle draw event instead. Or Handle change event on PublicationFilter control, if you want to be more specific.
user avatar
  • 2,331
8 votes
Accepted

Notification Message Event | Anguilla

You should be able to add an event listener onto the MessageCenter listening for the "newmessage" event. You'll probably have to filter off of the returned event object's data property. It's a multi ...
user avatar
  • 2,926
8 votes

Disable publish or unpublish button in ribbon tool bar or context menu in Tridion

If this makes sense per your business requirement (and do not want to restrict yourself to GUI Extension), you may follow the below approach as well: Create a group in Tridion CME and add all users ...
user avatar
  • 15.9k
8 votes
Accepted

What is Privileges: 1 refers to in GUI Extension User.Data.Privileges

That indicates the user is a System Administrator I believe. Edit: As noted by Nuno in the comments this has changed in SDL Web 8.5 with the introduction of the Privileges model. See related ...
user avatar
7 votes
Accepted

Clear field value from Anguilla framework

I had quick look in the code for the component dialog and found the following snippet that should help you resolve your problem: Tridion.FieldBuilder.FieldTypeHandlers.MultiLineTextField.prototype....
user avatar
  • 14.3k
7 votes
Accepted

Access Tridion object in Browser Console?

No takers, so I'm posting what my colleagues explained, as a community post (no points, but feel free to update and add details). With SDL Tridion 2013 SP1, you will find the Browser console ...
7 votes
Accepted

How do I only load a specific Javascript file when the current view is a ComponentView?

You need to extend associated View group. In case of ComponentView it is Tridion.Web.UI.Editors.CME.Views.Component See how to make groupextensions from Eric answer in similar post: Component ...
user avatar
  • 2,331
7 votes
Accepted

Warning: Command is not registered

That error means that some code is calling executeCommand with the name of a command that either hasn't been registered or doesn't implement the "Tridion.Core.Command" interface. Commands are ...
user avatar
  • 19.8k
7 votes
Accepted

How to extend Publish Queue Context Menu?

<ext:apply> <ext:view name="publishqueuepopup"> <ext:control id="PublishQueueContextMenu" /> </ext:view> </ext:apply>
user avatar
  • 2,331
7 votes

Read appdata in GUI extension

When you say "the" appdata do you mean the extension relates to components and you want to store the data in the component appdata? (I guess one good reason to do this is that it could be content ...
user avatar
7 votes
Accepted

gui extension - selecting the correct frame and using correctly the Javascript Console

It depends on the browser you are using. In Chrome, it's a drop-down list in the top-left corner of the console: In Firefox, it's an icon in the top-right: And in Internet Explorer it's a drop-...
user avatar
  • 19.8k
7 votes

Tridion 8.5 UI Extension - How can I plug into rollback process?

To trigger your custom the event handler after the Rollback button is clicked, you'd have to get the controls of the Rollback button and register your custom function on an onclick event. In your ...
user avatar
7 votes
Accepted

SDL Tridion Character Limit increase on Keywords' Description Field

AFAIK: It's not possible to extend Keyword description field size it's tied with Database ITEM table Description field size, currently, it's designed to allow 255 characters only. If you're looking ...
user avatar
  • 7,485
6 votes

Custom ItemSelectDialogView when called from component with a preset schema

I've done something similar to this in the past. Here is the code i used in my gui extension to override the default multimedia pop up button: Extensions.ContentBloom.ComponentLinkSelect.prototype....
user avatar
  • 14.3k
6 votes
Accepted

Loading an item and storing it for global use

There are few things: Your last string in which you access p.currentItem executes before itemLoaded() callback. Thus p.currentItem is not defined yet. Storing model item in local variable is anti-...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible