Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8180467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:13:14+00:00 2026-06-07T00:13:14+00:00

I am building a GUI extension using SDL Tridion 2011 SP1. I want to

  • 0

I am building a GUI extension using SDL Tridion 2011 SP1. I want to collect some user input when an editor hits a new “Save and Comment” button. This button will collect some user input, and then trigger the built in save commands of the CME.

Then using an Event Handler I would like to catch that user input, and do some custom processing with it. My simple event handler is as follows:

using System;
using System.Text;
using Tridion.ContentManager.Extensibility.Events;
using Tridion.ContentManager.Extensibility;
using Tridion.ContentManager.ContentManagement;
using System.IO;

namespace UrbanCherry.Net.SDLTridion.EventHandlers
{
  [TcmExtension("VersionCommenting")]
  public class VersionCommenting : TcmExtension
  {
    public VersionCommenting()
    {
      Subscribe();
    }

    public void Subscribe()
    {
      EventSystem.Subscribe<Component, SaveEventArgs>(AddCommentToItemVersion,
                                                      EventPhases.Initiated);
    }

    private void AddCommentToItemVersion(Component source, SaveEventArgs args,
                                         EventPhases phase)
    {
      //Do some work here   
    }
  }
}

Is it possible for my GUI extension to somehow add values to the SaveEventArgs, either using the args.ContextVariables or some other method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:13:16+00:00Added an answer on June 7, 2026 at 12:13 am

    There is no direct way to pass parameters from a GUI extension to an event handler. So the only way I can imagine is by piggybacking the additional information into an existing data structure. Application data (as Will suggested) is one such data structure, but you can also consider piggybacking the information onto the existing Component XML.

    Since you have both a GUI extension and an Event Handler, you essentially can do anything you want in the former, as long as you “undo” those changes in the latter.

    So one way I can imagine:

    1. in your GUI extension, inject a custom element with the comment into the Component XML
    2. in your Event Handler, extract the comment and remove the custom element

    I haven’t tested this approach, but have done similar thing with custom Data Extenders: change the command or data sent to the server and then on the server detect that change and act on it (before passing it on to TCM).

    Of course you’d have to make sure your event handler in this case removes the comment from the Component XML in one of the earlier phases.

    If you want to do it safely you should take the comment off from the Component XML in a very early event phase and then only save the comment in the pre-commit/post-commit phase. In between those phases you’d have to store the comment somewhere, but at least the data made it from the GUI to the server by then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently begun working on a project regarding GUI building using some form of
Part of the GUI I'm building using tkinter has a pop-up window that says
When I am building a gui in NetBeans on a Mac, sometimes I want
I'm building a Java GUI for some code, and I'm not quite sure about
I've been building a JavaScript and CSS only GUI extension. I followed the instructions
I'm building a gui using tkk in python and I'm having trouble with the
I'm building a GUI with the SimpleSwingApplication trait in scala swing. What I want
I'm building a GUI in which I need to allow the user to enter
I need to do some quick-and-dirty Perl GUI building. I can't afford a Komodo
I have some Matlab code and a GUI for it and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.