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 7778231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:20:46+00:00 2026-06-01T18:20:46+00:00

In Tridion 2011 SP1 I’m trying to implement an event that will publish items

  • 0

In Tridion 2011 SP1 I’m trying to implement an event that will publish items automatically whenever the editor presses Save & Close (but not Save).

Under normal conditions this could be handled in a CheckIn event, but because this item will probably be in workflow, there is no CheckIn event (yet).

In COM Events we had a flag (doneEditing) to tell us if the editor had pressed save & close vs Save. I don’t seem to be able to find a similar option in TOM.NET Events.

For reference – here’s the code so far:

[TcmExtension("Publish to Wip Events")]
public class PublishToWip : TcmExtension
{
    public PublishToWip()
    {
        EventSystem.SubscribeAsync<VersionedItem, SaveEventArgs>(PublishItemToWip, EventPhases.TransactionCommitted);
    }
    private void PublishItemToWip(VersionedItem item, SaveEventArgs args, EventPhases phases)
    {
       // Magic goes here
    }
}

I’ve looked at the options for SaveEventArgs, but haven’t found anything that would provide me this information. Any tips?

  • 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-01T18:20:47+00:00Added an answer on June 1, 2026 at 6:20 pm

    Alright, with some help from the CM team I got the right answer to this.

    Use the CheckInEvent instead of save. Even if the item is in workflow it will still invoke this event when you click Save & Close (and only if you click Save & Close, not when you click Save).

    Something like this will get me going:

    [TcmExtension("Publish to Wip Events")]
    public class PublishToWip : TcmExtension
    {
        public PublishToWip()
        {
            EventSystem.Subscribe<VersionedItem, CheckInEventArgs>
                (PublishItemToWip, EventPhases.Processed);
        }
        private void PublishItemToWip(VersionedItem item, 
            CheckInEventArgs args, EventPhases phases)
        {
    
            if (!item.LockType.HasFlag(LockType.InWorkflow)) return;
    
            if (!item.IsCheckedOut) return;
            // do something now
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Tridion 2011 SP1, Event System, I'm trying to get the WorkItem of an
I am on a Tridion 2011 SP1 CM server and I’m trying to start
Trying to reupload the DD4T.Templates.dll into Tridion 2011 SP1 using the TcmUploadAssembly in the
I'm trying to connect Content Porter 2009 SP1 client to a Tridion 2011 SP1
I am using SDL Tridion 2011 SP1. I need small clarification regarding multimedia schema
I am working on creating .NET TBB for Tridion 2011 SP1. I have two
I am working on an XSLT TBB in Tridion 2011 SP1, using the XSLT
I am creating Schema using Core Service in SDL Tridion 2011 SP1. In the
In the Tridion templating manual (I'm looking at 2009 SP1) it explains that you
I'm trying to publish a page in Tridion and keep getting the following NHibernate

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.