Thursday, January 11, 2007 8:57 PM Jan Tielens

How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Today I got an interesting question in the U2U Sharepoint 2007 DevCamp in Copenhagen which I couldn't answer straight away (this happens more than I'd like it to happen). After some searching and with the help of one of the attendees we finally managed to answer the question!

In a Microsoft Office SharePoint Server (MOSS) 2007 Publishing Portal (aka Internet Facing Website, aka CMS vNext site) you can choose to schedule the publishing of pages. For example, suppose you would like to advertise a message on your site during a specified period of time (eg from the 25th of December to the 1st of January). This is possible because the underlying Page Publishing Content Type has the required fields (Scheduling Start Date and Scheduling End Date); the Page Layouts make use of this Content Type.

In a MOSS 2007 Collaboration Portal (aka Enterprise Portal, aka SPS vNext site) Page Layouts are used in the same way as in a Publishing Portal, so I supposed they would offer the same scheduled publication feature too. Wrong! Out-of-the-box publishing pages in Collaboration Portals can't be scheduled; the Publishing Console doesn't show this option:

My first guess was that the Page Layout for pages in Collaboration Portals didn't use the Content Type which included the Scheduling Start and End date, but wrong again; they do. It turned out that it's a setting on the document library itself (Manage Item Scheduling). To enable this functionality you need to follow these steps:

  1. Navigate to the Document Library Settings page of the Pages document library. You can find the Pages document library by clicking the View All Site Content link on top of the Quick Launch.

  2. Click the Versioning Settings link and enable content approval, verify as well that both major and draft versions are allowed.

  3. Click OK and so you'll end up back on the Settings page of the document library. Now click the Manage Item Scheduling link.

  4. Check the Enable scheduling of items in this list option and click OK. Voila, now you will be able to schedule the publication of pages in this document library!

To actually schedule a page to be published in a specific timeframe, create a new page in the modified Pages document library (or edit an existing one). The Publishing Console will show the Publication Start Date.

If you click the Immediately link, you can enter the schedule:

Comments

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, January 12, 2007 4:25 AM by Thomas

Hi Jan. In relation to this feature, I have some findings as well. Try to look at the default "newsarchive.aspx" page found in the Pages lib of a standard News site. What does it do? Close to nothing. No filters or anything are set in the Content Query WPs on this page that would give a view of expired news pages. A bit strange...

Also, what happens when an item reaches its "Scheduling End Date" - the page is set back to "Draft" state. Important to be aware of, if you consider that at least all Approvers will always see Draft pages. So, if you look at the default Content Query WP displaying news pages, the user with Approve rights will see published news item mixed in with all drafts, including news items that are drafts because they have expired. You can fix this by adding a filter to the Content Query WP, saying "Approval Status != Draft". OK, so why don't you just add another filter on "Scheduling Start Date" and "Scheduling End Date" in the Content Query WP? Well, I've tried, but have been unable to set this up. The query simply does not return any items, once I use these two fields to filter on.

So for now, I'm considering a solution that ignores the built-in "Item Scheduling" for my news/news archive. Simply add two date fields of your own, and use those for filtering out expired items into a display of a news archive. These two new date fields should also be avalible for a custom Archival workflow, so can actually archive news pages once they expire. (I've not verified this yet).

If anybody has other findings/ideas on this, I would love to hear about it!

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, January 12, 2007 9:48 AM by MikeWalshHelsinki

I suspect you missed a NOT here ...

"which I could answer straight away (this happens more than I'd like it to happen)

I would certainly be very happy if I could answer questions right away most of the time.

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Wednesday, January 31, 2007 3:14 PM by iTanas

I ran into similar problems as Thomas.  As his post suggest one may add 2 custom date fields, however how do you actually enforce them.  Even if you make them "required" the poster can still post an article without having those fields show up and ask to be filled in.  So my question is how do you make these 2 fields show up in "create an article" page or even when you go to "edit" article, because it doesn't even show up there, the only place your 2 custom date fields will show up is when you go "view properties" of an article page and then "edit item".

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Wednesday, February 07, 2007 12:25 PM by Rick

How can you schedule publishing and expiration of a *site*? I've tried adding and setting "Scheduled Start Date" and "Scheduled End Date" as well as just "Start Date" and "End Date" to a site's categories, but it just doesn't work - the dates are ignored and the site is displayed.

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, February 20, 2007 10:42 AM by David

Thanks a TON for this!  I have not had time to poke around and figure this out on my own.  In two minutes, I searched the net, followed your steps, and BINGO!  Excellent work, and the screenshots helped TREMENDOUSLY!

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, March 08, 2007 12:56 AM by Aaron

Thanks for the post.. has anyone tried to do this process in code?. I can set al the flags: require approval and enabling versioning but not to enable item scheduling on a list. Ive tried creating a document library and manually following the above steps and then exported the list schema and reinstalled it as a feature, However the item scheduling was still not enabled. Im guessign item scheduling can not be set as part of the list meta data.  

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, March 15, 2007 3:24 AM by karthick

I enabled the scheduling by populating start and end date for publishing. Once is saved, the page was in draft mode....i couldn't see any other difference between scheduled and unscheduled page....The scheduled page was displayed as like normal page....it didn't expired....Is there any issues ....Pls let me know how it has to work....

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, March 15, 2007 1:19 PM by James

Great post.

I've tried this on one server and it worked fine.

However on a second server I get the error message "An error occurred trying to publish this page on the set schedule. Republish the page with a new date or view the log if the problem continues".

Great as this is there's nothing in the log files or in the event log!?

Any help would be appreciated.

James

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, March 16, 2007 9:41 AM by James

As a follow up it only seems to fail for site collections which are using a content database I have restored?

James

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, March 16, 2007 9:58 AM by James

Just to finish my post,

it turns out one of my colleagues new what was causing the problem.

When you restore the content database it fails to create some of the job definitions including the Schedule Approval one.

The fix, well simply create another site collection in the web application using the publishing definition and the job definitions are created correctly.

Hope this information is useful to some other.

James

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, April 12, 2007 9:43 PM by Thomas

Anyone know how links within the site collection to the page are handled when the page expires?  

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Saturday, May 12, 2007 9:53 AM by ...

pagine piuttosto informative, piacevoli =)[URL=http://www.gennaiozd92.org/winnie-the-pooh] winnie the pooh [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/dvd-winnie-the-pooh.php] dvd winnie the pooh [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/winnie-the-pooh-animal.php] winnie the pooh animal [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/disney-winnie-the-pooh.php] disney winnie the pooh [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/foto-di-winnie-the-pooh.php] foto di winnie the pooh [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/cartoline-winnie-the-pooh.php] cartoline winnie the pooh [/URL]  [URL=http://www.gennaiozd92.org/winnie-the-pooh/winnie-the-pooh.php] winnie the pooh [/URL]

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Sunday, August 05, 2007 1:24 AM by Triska

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 10:28 AM by Michalis

Nice...

<a href=" mitsubishi-brandon.carbodies.cn "> mitsubishi brandon </a>

mitsubishi-brandon.carbodies.cn mitsubishi brandon

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 11:30 AM by Lazaros

interesting

<a href=" car-beds.caldwelltoyota.cn "> car beds </a>

car-beds.caldwelltoyota.cn car beds

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 12:12 PM by Bikos

Nice!

<a href=" http://bmw-tools.canogajeep.cn "> bmw tools </a>

http://bmw-tools.canogajeep.cn bmw tools

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 3:06 PM by Vassilis

Nice...

<a href=" porsche-986.carentertainment.cn "> porsche 986 </a>

porsche-986.carentertainment.cn porsche 986

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 4:59 PM by Adonis

Cool...

<a href=" honda-awd.carcompanies.cn "> honda awd </a>

honda-awd.carcompanies.cn honda awd

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Tuesday, November 13, 2007 5:07 PM by Yannas

Nice...

<a href=" sideways-saab.brushguardjeep.cn "> sideways saab </a>

sideways-saab.brushguardjeep.cn sideways saab

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Wednesday, November 14, 2007 3:24 AM by Konstantinos

Cool.

<a href=" boardwalk-audi.brushguardjeep.cn "> boardwalk audi </a>

boardwalk-audi.brushguardjeep.cn boardwalk audi

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, November 15, 2007 3:43 PM by Themestoclis

Nice!

<a href=" prestige-car.carposters.cn "> prestige car </a>

prestige-car.carposters.cn prestige car

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Monday, November 19, 2007 1:38 PM by Tasos

Nice!

<a href=" shampoo-car.brisbanebmw.cn "> shampoo car </a>

shampoo-car.brisbanebmw.cn shampoo car

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, November 29, 2007 11:16 PM by Paras Kaneriya

Good Post Indeed. I found what I want.

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Thursday, December 13, 2007 5:00 AM by peter

Is this "Scheduled Publishing" feature available in SharePoint 2003 as well?

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, January 11, 2008 1:48 PM by Nathan

Has anyone tried to do this process in code?.

# re: How-to Enable Scheduled Publishing in a MOSS Collaboration Portal

Friday, January 25, 2008 5:50 AM by Andy

Great blog and thanks to James (higher up) for the info on correcting the missing Job Definitions.  Our scheduled publishing is now working

Andy

# Inconvenient PublishingStartDate and PublishingEndDate - Waldek Mastykarz

Pingback from  Inconvenient PublishingStartDate and PublishingEndDate - Waldek Mastykarz