7

I want to add check box "Select All" functionality on the Translation job component, please see below screen shot.

enter image description here

using "Select All" I can select all below publication list or deselect as well.

Is there any way we can achieve this using GUI Extension or any other way.

Please suggest!!

  • As per the solution implemented by me, I have done some modifications to the Tridion existing files which is related to Tridion Translation jobs and it is working fine for me. What are the legal issues which we can face if we modify the Tridion provided ASPX page, is this could cause support voilation? or this fine until it impact some tridion functionality – Manoj Singh Jul 3 '13 at 10:51
8

As another option I would suggest the Tab Initialize Extenders.

To use it you should create a class (well.. in terms of JavaScript of course ), implement public initialize method there, and register it as a Tab Initialize Extender for Translation Job General Tab (you should aslo configure Extension editor configuration to make this extension accessible).

Example

When Tab Control will initialize the General Tab it will also check its tabInitializeExtensions, and if there are any it will call initialize method from it.

In this extension you can create an Input Checkbox HTML element and implement event listener which will react on this check-box events by checking/unchecking the checkboxes in list.

  • how to implement this/** * TODO: * 1\ Create Input field and append it tab HTML //Any example to for this * 2\ Attach event listeners to the created input element //Any example to for this */ – Manoj Singh Jun 27 '13 at 12:15
  • 1\ Something like var i = document.createElement("input"); i.type = "checkbox"; plus $("#DetailsPanel").appendChild(i); for more info see your tab markup – UI Beardcore Jun 27 '13 at 12:52
  • 2\ $evt.addEventHandler(inputCheckBoxElement, "click", this.getDelegate(this._onCheckBoxClick)); – UI Beardcore Jun 27 '13 at 12:53
  • thanks...did we have sample configuration file which we can use to configure this UIBeardcore.Extension.Tab.Views.Tabs extension given in above example...do we need todisposeInterface for our attached event listner as well – Manoj Singh Jun 28 '13 at 12:12
  • I went with different approach....we can customize our existing aspx page accordingly and add the required javascript in provided javascript for that page. Its working for me and company...thanks all for your support – Manoj Singh Jun 30 '13 at 15:11
2

I would probably start by adding a button to the ribbon instead of modifying the Tridion Edit view with a checkbox.

Then, when clicking the button, you would need to be able to grab the checkboxes in the form with Javascript / jQuery. This part could take anywhere from a few hours to days, depending on your luck with Selectors and skill with JavaScript. This kind of code is very specific to the Edit window you have open in Tridion.

It is also possible that in a future version of Tridion the HTML could change and your extension would need to be updated. I would suggest to compare the HTML from 2011 to 2013 for this view. I am guessing it is not changing too much. This would then give your extension a good 2-3 years, if not more, before there would be any risk of it needing to be updated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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