357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Consumer Engagement at Florida Blue with IBM Digital Experience
Tue, Jul 22nd 2014 7
IBM Digital Experience in the Cloud: New Options and Capabilities
Tue, Jul 22nd 2014 11
Integrating IBM Digital Experience and Microsoft SharePoint
Tue, Jul 22nd 2014 23
IBM Digital Experience Conf: Developing Portlets Using JQuery
Tue, Jul 22nd 2014 15
IBM Digital Experience Conf: Marketing Integration
Mon, Jul 21st 2014 33
IBM Digital Experience Conf: IBM Web Content Manager Patterns
Mon, Jul 21st 2014 41
IBM XGX – What’s New in WebSphere Portal and IBM WCM 8.5
Mon, Jul 21st 2014 45
Top 10
Official Sitecore Training – Recommendations on Who, What & When
Sun, Dec 23rd 2012 1137
Gartner Magic Quadrant for Horizontal Portals 2013
Wed, Sep 25th 2013 558
SharePoint migrations may cause consternation
Sun, Feb 16th 2014 471
IBM Connect: Demos
Mon, Jan 27th 2014 440
Mobile apps using IBM Worklight and WebSphere Portal: a tutorial
Tue, Sep 4th 2012 428
Adobe Summit: Top new features in Adobe Experience Manager WCM
Wed, Mar 26th 2014 413
IBM Connect: Keynote Guest Speaker: Seth Meyers
Mon, Jan 27th 2014 401
Optimizing Experiences Using IBM TeaLeaf
Tue, Jan 28th 2014 396
What’s coming in WebSphere Portal and WCM
Tue, Jan 28th 2014 391
IBM Connect: Vision and Direction
Mon, Jan 27th 2014 379


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
25 hits



Recent Blog Posts
7


Consumer Engagement at Florida Blue with IBM Digital Experience
Tue, Jul 22nd 2014 5:13p   Mark Polly
Glenn Kline of Perficient and Phani Kanakala from Florida Blue presented a case study of how Florida Blue, Florida’s largest healthcare payer, uses IBM Digital Experience to engage consumers.  Florida Blue’s mission is “To improve the health and well-being of Floridians and their communities”.  This really is a good reason to engage customers. Florida Blue has been using IBM Digital Experience platforms since 2008.  Every year Florida Blue added new features and new si [read] Keywords: agent ibm application applications mobile properties server websphere websphere portal
11


IBM Digital Experience in the Cloud: New Options and Capabilities
Tue, Jul 22nd 2014 4:12p   Mark Polly
Tony Higham and Paul Kelsey spoke about deploying IBM Digital Experience on both an on-premise and public cloud.  There are 5 properties of the cloud generally recognized in the market.  IBM is fully supporting each of theses properties: On-demand & Self Service – its there when you need it Broad Network Access – a global network with fast access from any device Resource Pooling – customers share computing resources at some level.  IBM is not really embracing shared har [read] Keywords: ibm application database network properties security websphere websphere portal
23


Integrating IBM Digital Experience and Microsoft SharePoint
Tue, Jul 22nd 2014 12:12p   Mark Polly
Jason Cornell spoke at the IBM Digital Experience Conference about how well IBM Digital Experience software integrates with SharePoint. When IBM talks about integration with SharePoint, its usually how to display SharePoint content or apps within WebSphere Portal. There are a bunch of ways that IBM has enabled out-of-the-box integration with SharePoint: IBM has Web Application Bridge to pull in SharePoint sites, libraries, lists, wikis, blogs, announcements and so on.  The Bridge displays cont [read] Keywords: calendaring ibm ldd lotus application applications exchange exchange integration microsoft portlet sharepoint sql websphere websphere portal wiki
15


IBM Digital Experience Conf: Developing Portlets Using JQuery
Tue, Jul 22nd 2014 10:12a   Glenn Kline
jQuery is one of the most pervasive scripting libraries in use today. The session “Developing Portlets Using Javascript and JQuery for Engaging Digital Experiences” by Stephan Hesmer, Web 2.0 Architect, IBM and  Jaspreet Singh, Rational Tools Architect, IBM provided good insight as to how to leverage jQuery in IBM WebSphere Portal. First, a couple of key statistics to indicate why this is important and cannot be ignored: 57.5% of websites use jQuery. jQuery has a 93% marketshare. [read] Keywords: ibm ajax application applications css dojo java javascript mobile portlet properties web 2.0 websphere websphere portal widgets
33


IBM Digital Experience Conf: Marketing Integration
Mon, Jul 21st 2014 5:12p   Mark Polly
Rob Enright, a Digital Experience Strategist with IBM spoke about integrating Marketing Management with IBM Digital Experiences.  Customer expectations are soaring, yet it takes time to build your digital experience to keep up or even get ahead of those expectations. Here are several themes IBM is focusing on: “Insight to Action” with a few clicks – this will require more and more automation of the Manage omni-channel campaigns that are coordinated across the channel.  This [read] Keywords: ibm integration portlet
41


IBM Digital Experience Conf: IBM Web Content Manager Patterns
Mon, Jul 21st 2014 1:13p   Mark Polly
Eric Morentin and Nick Baldwin spoke about WCM Patterns that should be used in content management development in IBM Digital Experience.  Patterns of course are a “canned” way or even best practice for implementing solutions.  There are four themes of patterns they talked about: Better content / component model There are different types of content and Content Manager build a content page by pulling various types of content.  Types can include things like slide shows, lists, bloc [read] Keywords: ibm best practice css development javascript
45


IBM XGX – What’s New in WebSphere Portal and IBM WCM 8.5
Mon, Jul 21st 2014 1:13p   Glenn Kline
Rob Will, chief architect for WebSphere Portal, once again gave a great presentation at IBM’s Digital Experience Conference 2014.  The focus was on the new capabilities delivered in the last year. The focus of the digital experience suite has been to provide a framework with tools and services to be able to deliver a great digital experience.  The focus has shifted from IT building the solutions to the line of business being able to own and deliver content and services themselves.  The [read] Keywords: connections ibm ajax application applications css development dojo mac mobile portlet profile security server websphere websphere portal
41


IBM Digital Experience Conf 2014: Stephen Power’s View
Mon, Jul 21st 2014 11:12a   Mark Polly
Forrester’s Stephen Power spoke about transforming digital strategy. Stephen is Vice President at Forrester and covers the Digital Experience market.  He started by talking about the age of the customer and how we got to this point (customer centricity per Gary Dolsen).  Preceding the age of the customer was Age of Manufacturing, Age of Distribution and the Age of iInformation.  Starting in 2010, he suggests that the Age of Customer started. Complexity is increasing in the Age of the Cu [read] Keywords: ibm
39


IBM Digital Experience 2014: Opening Session with Doug Geiger
Mon, Jul 21st 2014 10:13a   Mark Polly
Doug Geiger is IBM’s VP for Development for Digital Experience.  He talks about the new features available in IBM Digital Experience 8.5: New Authoring toolbar to make content creation easier BrightCove integration to publish steaming video to the BrightCove distribution network Multi-channel delivery with IBM Worklight – everything is multi-channel out of the box Portlet development now is easier by allowing non-java developers to create rich portlets using: Digital Data Connect [read] Keywords: collaboration ibm application development integration java javascript network portlet
40


IBM Digital Experience Conference 2014: Opening with Gary Dolsen
Mon, Jul 21st 2014 10:13a   Mark Polly
IBM’s Digital Experience Conference got underway today in Anaheim.  For those that have followed IBM WebSphere Portal in the past, Digital Experience is a really set of individual point products that include WebSphere Portal, Web Content Manager, Forms, etc. If you have really, really followed IBM’s portal you will probably know Larry Bowden as the long-time leader and builder of the IBM WebSphere Portal brand.  Larry has recently retired from IBM and Gary Dolsen has taken over th [read] Keywords: ibm mobile websphere websphere portal




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