Oct 10

Swapping Content

Here’s something content management vendors need to understand about “scheduling” and “expiring” Web content. This is a common feature request, but users don’t always want to use it in the manner vendors expect.

Sure, often users want content to appear at a certain time, then disappear at another time. However, I’ve found another scenario that’s just as common: users want to “swap” one content block with another at a certain time.

Consider an intranet. The home page has a “lead story.” This is a single story, in a certain spot on the home page. The editor of this intranet wants to queue up a bunch of stories to rotate in and out of this spot, so at a certain time, Story A disappears and Story B takes its place.

This is tricky. Sure, Story A is expiring, and Story B is scheduled. But what you really want to do here is tell the template, “Use a different piece of content at a certain time.”

There is a way to solve this that I stumbled onto by necessity while working with Ektron. If your CMS supports “sequences” of content — ordered lists of specified content — you can make it work.

In Ektron, we have the user create a “collection” of content, which is an ordered list as we describe above. To get the lead story for the home page, we take the top content item from the published version of the list. The published version of the list takes scheduled dates into account (items before their publish date and after their expiration date do not appear in the list).

The value here is that the first content item — Story A — could expire, which means the published list filters it out, and the focus “falls through” to the second item — Story B. So, when the first content item expires, attempts to grab it from the top fail, and the second content item becomes the first. Voila — content has swapped at a specified time, exactly like we wanted it to.

Of course, the users still have to go and manually manage the list on the admin side. It would be a little slicker if, upon expiration, the first item was removed from the list, but I haven’t bothered to take it this far yet.

Curious to hear how other systems accomplish this.


Comments

by Michael Mathy,   October 10, 2007 11:05 PM  

Same as Ektron except I do not have the time in the publication start date and end date.


by Alvar Hanso,   October 11, 2007 10:10 AM  

In this case though is content really expiring and coming online or do you want to just rotate stories? 2 different requirements with 2 different solutions.

We build on top of MOSS 2007 so we also have a list/collection of content. The parts on the homepage only return published items. We then use code to index through them in a rotational fashion (keep the primary news article on the top, show rotational next stories).

Seems like it is not a problem space that needs solved.


by Deane,   October 11, 2007 10:24 AM  

In this case though is content really expiring and coming online or do you want to just rotate stories? 2 different requirements with 2 different solutions.

Exactly. That's what I said.

Content is expiring. Story A expires, but rather than just disappearing from the it, it needs to "swap" with Story B. The solution I've come up with works.



Add Comment


Want to advertise on this site? Contact FM.
Web Hosting Web hosting, dedicated servers and Web design services
Laser Toner Cartridges UK laser toner, toner cartridges, hp toner, lexmark toner, samsung toner, canon, toner, epson toner, oki toner, kyocera toner, xerox toner, remanufactured toner, compatible toner
Direct TV Deals Free 4 room direct tv deals. no equipment to buy. free fast professional direct tv installation. this is the best direct tv deal available anywhere.
SEO Article Learn from the experts with our SEO article.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Best satellite TV deals.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
8mm film to DVD Retain family memories with the only frame by frame digital restoration service in the United States for your 8mm film to DVD today
Rubber Stamp Shop for custom self-inking stamps, hand stamps, address stamps, label stamps, check endorsement stamps, check deposit stamps, date stamps, pre inks, pocket stamps, ink and much more!