354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Is Converged Infrastructure cure for your data center headaches?
Thu, Apr 17th 2014 58
5 Things That Should Be Keeping CMO’s Up at Night
Thu, Apr 17th 2014 107
IBM Acquires Marketing Automation Player Silverpop
Tue, Apr 15th 2014 77
The Ideal Length of every Tweet, Facebook Post and Headline
Tue, Apr 8th 2014 105
5 Key Strategies for Omni-Channel Marketing
Mon, Apr 7th 2014 133
Liferay Releases SDK to Speed Up Custom Mobile App Development
Tue, Apr 1st 2014 93
Adobe Summit: Designing an integrated customer profile
Thu, Mar 27th 2014 89
Top 10
Official Sitecore Training – Recommendations on Who, What & When
Sun, Dec 23rd 2012 429
SharePoint migrations may cause consternation
Sun, Feb 16th 2014 340
Gartner Magic Quadrant for Horizontal Portals 2013
Wed, Sep 25th 2013 329
IBM Connect: Demos
Mon, Jan 27th 2014 321
IBM Connect: Keynote Guest Speaker: Seth Meyers
Mon, Jan 27th 2014 275
Optimizing Experiences Using IBM TeaLeaf
Tue, Jan 28th 2014 256
IBM Connect: Vision and Direction
Mon, Jan 27th 2014 248
Mobile apps using IBM Worklight and WebSphere Portal: a tutorial
Tue, Sep 4th 2012 244
What’s coming in WebSphere Portal and WCM
Tue, Jan 28th 2014 234
IBM Connect: Social Next What’s Coming to Social
Mon, Jan 27th 2014 225


Scheduling Future Item Publishing in Sitecore
Jamie Stump    

Whenever we work with a client on a Sitecore implementation, it is inevitable that at some point in the process, the question of scheduling future publishes will come up.  The question is usually phrased something like “Does Sitecore allow me to schedule an item to be published in the future?”  Every time it comes up, I have to chuckle a little to myself, because of the answer that immediately pops into my head.  That answer is “Well, out of the box, sort of, kind of, but not really, no, at least not in an effective real-world manner.  But yes, that can be done.”  And I legitimately think that’s the “right” answer.

I know, you’re now saying to yourself, “How can that be the right answer?  You said yes and no and yes again all at the same time, and still managed to not really say much of anything.”  Well, let me explain.  Out of the box, Sitecore gives the content editors the ability to restrict the publication of any given item (or even specific versions of an item) right in the desktop.  To see this in action, navigate to the “Publish” menu of the Sitecore Desktop Ribbon, and click the Change button in the Restrictions section.  You will get a pop-up that now lets you put in dates for both when an item should go live, and if necessary, when it should be removed from  being live.  The following screenshot shows a portion of this popup:

 Sitecore Publish Restrictions

So, now you’ve got to be thinking “That’s awesome, but doesn’t that answer the original question with a resounding ‘Yes’?”  It sure seems to, except for one little caveat – there’s nothing out of the box with Sitecore that does automatic publishing.  So, given the example in our image above, the current item is only to be published between 3/12/12 at 1:30PM and 3/30/12 at 12:30AM, and that’s what will happen when a content manager explicitly publishes the site.  The first time the site is published after 3/12/12 1:30PM, the item I’ve modified above will be published – so if that first time is 3/15 at 8:30PM, then we had 3+ days where our item wasn’t published, but should’ve been.  Likewise, the first publish explicitly performed after 3/30/12 12:30AM will automatically remove our item from being published, but our item won’t disappear a second before that first publish.  This can be a little misleading to content managers who stumble upon the first screen on their own, as it seems to indicate a positive answer to the question “Does Sitecore allow me to schedule an item to be published in the future?”  It’s important that we, as developers make sure they’re aware of exactly what that publish restriction date does and does not do.

So, I think that details the “sort of, kind of, but not really, no” portion of my answer – now let’s get to the “But yes, that can be done” portion, which is obviously the part clients care most about – the “Yes, I can help you make that happen” part.  A coworker of mine has written some code that when called by a scheduled task, will perform a smart publish on a given site.  The code is thus:

   private void PerformSmartPublish()
   {
         string ProductionWeb = ConfigurationManager.AppSettings["ProductionSiteCoreDB"];

         Database dbSource = Sitecore.Configuration.Factory.GetDatabase("master");
         Database dbTarget = Sitecore.Configuration.Factory.GetDatabase(ProductionWeb);

         Language[] dbLanguages = dbSource.Languages;

         Database[] dbTargets = new Database[] { dbTarget };

         PublishManager.PublishSmart(dbSource, dbTargets, dbLanguages);
   }

 
Once you’ve got that code, you simply need to put it in a place that allows you to call it in a schedulable way.  There are lots of options to do this.  One way is to call the above code from a particular webpage that, while publically accessible, is not publicized as  a part of your Sitecore site (IE: a page that no one knows exists).  Once you have that page, you can schedule a windows task to call your page at a regular interval, and it will automatically perform a smart publish on your site.

Now you have the means to allow Content Managers to administer date restrictions on when items should be published through the Sitecore desktop, and a means to do automatic publishing through a small bit of custom code.  It’s important to note the ramifications of a scheduled publish though.  If your site requires that content goes live at the same time on any given day, you can get away with having your scheduler only call the above code once a day at the proper time.  This should be completely acceptable, and really happen without a hitch.  However, what if your site might need content that goes live at 8:30AM, or 8:45AM, or 12:17PM, or any other arbitrary time of any given day?  Well, then you need your scheduled task to run much more frequently – possibly once every minute.  It’s certainly possible to set your task up to do this, but there will absolutely be an increased amount of processing strain placed on your server to run this code continuously.  Having the ability to publish automatically whenever we want to does not make doing so a best practice.   Another consideration that needs to be clearly communicated to all of your Content Editors when implementing an automatic publish feature is how it affects their items.  Any item that is not in a non-final workflow state, and doesn’t have publishing restrictions upon it will be published by the above code.  That means, if you have your auto-publish scheduled to run at 8:00AM every day, and a content editor saves a change to an item (without any workflow attached to it) at 7:59AM, but does not intend for that item to be published right away, they will be out of luck, because it will be published automatically.

We should be prudent here and say that implementing the above code alone does not preclude a content manager from explicitly performing their own Sitecore publish at anytime they wish.  Our code could be used as the sole means of publishing by removing publish rights from all content editor permissions within Sitecore, thus ensuring that the site is only published when it is scheduled to be.  Our code can just as easily be used in addition to “on-demand” publishes performed by content managers to help prevent items that should be published / unpublished on a schedule missing their target dates.  If you have content managers who are really on the ball, it’s also conceivable they will do regular publishes when they need to be done and you don’t have to implement an auto-publish at all.  Each Sitecore implementation should have its own business rules relating to the publishing of content, and those rules should dictate the methodology that is used.

So, the next time you hear someone ask (or have the question yourself) “Does Sitecore allow me to schedule an item to be published in the future?”, you can feel free to quote me by saying “Well, out of the box, sort of, kind of, but not really, no, at least not in an effective real-world manner.  But yes, that can be done.”, and have confidence that yes, this can be done without a lot of effort!



---------------------
http://feedproxy.google.com/~r/PortalSolutionsBlog/~3/1u5sXN9AX_4/
Mar 09, 2012
11 hits



Recent Blog Posts
58


Is Converged Infrastructure cure for your data center headaches?
Thu, Apr 17th 2014 2:12p   Brendon Jones
Oracle recently upgraded their Virtual Compute Appliance (OVCA) to X4-2. It was launched earlier in 2013, with adoption accelerating. It’s particularly useful for consolidating non-workload specific applications into a single managed environment. Applications may be installed on Windows, Linux, or Solaris. OVCA is part of Oracle’s portfolio of Converged Infrastructure, also known as Engineered Systems. This portfolio includes: Exadata Database Machine and Oracle Database Appliance & [read] Keywords: connections ibm application applications database development integration java linux microsoft networking oracle security virtualization
107


5 Things That Should Be Keeping CMO’s Up at Night
Thu, Apr 17th 2014 9:12a   Michael Porter
Thanks to Sharon Suchoval for pointing me to this.  Unless you’ve been hiding under a rock, anyone close to Marketing knows that the digital migration has unleashed a sea of change in the Marketing Department and the CMO.   The Oracle Social Spotlight has an article about 5 Things That Should Be Keeping CMO’s Up at Night. It’s a somewhat light hearted post on a potentially heavy topic.  I’m not going to reveal everything but let me give you the five things. They are su [read] Keywords: oracle
77


IBM Acquires Marketing Automation Player Silverpop
Tue, Apr 15th 2014 1:14p   Michael Porter
The enterprise marketing management space has been heating up for the past couple years.  IBM, Salesforce, Oracle, Adobe, and Microsoft have all made one or more acquisitions here and it hasn’t stopped.  Just a few days ago, IBM bought Silverpop, an Atlanta based cloud marketing automation player with customers in both the B2B and B2C space.  This is in addition to IBM’s Unica and Xtify acquisitions.  As IBM puts in in a Destination CRM article, “Across the board, we’ [read] Keywords: ibm email enterprise interface microsoft mobile oracle
105


The Ideal Length of every Tweet, Facebook Post and Headline
Tue, Apr 8th 2014 6:12a   Mark Polly
I think every writer at one time or another has thought about how long is too long for a post, tweet or headline. As I typed my headline into WordPress, it was kind enough to tell me that my headline is 59 of 65 characters. I never understood if WordPress thought 65 was the max or the ideal size for my headline. Reading through Zite (soon to be Flipboard) today, I came across this article by Kevan Lee at Fast Company: The Proven Ideal Length of Every Tweet, Facebook Post, and Headline Onlin [read] Keywords: facebook google twitter
133


5 Key Strategies for Omni-Channel Marketing
Mon, Apr 7th 2014 11:11a   Mark Polly
IBM recently conducted a webinar titled “5 Key Strategies for Omni-Channel Marketing” in which they discussed the following strategies: Collect data that helps create customer profiles Analyze that customer data to find actionable insights Decide how to allocate your budget across the right channels to reach the right audiences Manage the interactions with customers across the channels Optimize your messages, offers, and capture reactions to feed the data collection process Within [read] Keywords: ibm mac mobile profile
93


Liferay Releases SDK to Speed Up Custom Mobile App Development
Tue, Apr 1st 2014 9:11a   Michael Porter
This just in, Liferay has a new SDK for custom mobile apps.  They will release it to the public on April 2nd.  Here’s the press release. Liferay Releases SDK to Speed Up Custom Mobile App Development New developer toolkit helps Liferay’s customers develop and manage sophisticated mobile apps LOS ANGELES – (April 1, 2014) – Liferay, Inc., which makes open source portal software, is releasing a mobile software development kit today. The Mobile SDK is part of Liferay’s commitment [read] Keywords: collaboration community development eclipse email enterprise integration mobile twitter
89


Adobe Summit: Designing an integrated customer profile
Thu, Mar 27th 2014 4:15p   Mark Polly
Matthew Rawding, a Consulting Manager with Adobe. talked about how to use Adobe Campaign to create an integrated customer profile.  So what is an integrated customer profile? An integrated customer profile is a main pillar of Adobe Campaign.  Also included in Campaign are targeted segmentation, visual campaign orchestration, cross-channel execution, real time interaction management, and operational reporting. The goal is to build the most comprehensive view of a customer possible based on the [read] Keywords: consulting email profile
78


Adobe Summit: New Video Analytics in Adobe Analytics
Thu, Mar 27th 2014 3:12p   Mark Polly
Scott Smith presented a session on video analytics.  Analytics regarding video has been rough to achieve.  There have been few standards and the complexity has been high. Abode has introduced a Video Heartbeat Tracking library where they hope to simplify implementation of video analytics.  They also want to introduce stability into process and help you understand more about your video usage.  This is becoming more and more important as video consumption moves from traditional TV to all of ou [read] Keywords: javascript server
73


Adobe Summit: The Convergence of Search and Social
Thu, Mar 27th 2014 12:12p   Michael Porter
Marc Blinder, Director of Social Marketing at Adobe and Jon Beeston, Director of New Product Innovation at Adobe presented on the trend of search and social convering.  Twitter is a great example of that where we share but also search. Theme: Search and Social platforms are converging – which  means successful marketers musth have one unified team with one set of data. Key takeaways from this session Connect: facebook to offline experience. feed the metadata Bring: search and social teo [read] Keywords: development email facebook google mobile network twitter
103


Amazon Slashes Pricing for Several Cloud Services
Thu, Mar 27th 2014 11:12a   Michael Porter
I recently blogged about Google’s Bigger, Cheaper Cloud and now it looks like Amazon has responded. CRN has an article about Amazon’s announcement of 10%-40% cuts for M1, M2, C1 and CC2 instances.  Amazon didn’t make much reference to Google and they have cut prices a number of times although the timing is suspect. Amazon’s EC2 M3 instances are dropping 38 percent, while C3 instances are being cut by 30 percent. All of these EC2 figures are for instances running Linux, [read] Keywords: database desktop google linux




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition