Microsoft Content Management Server - Programmatically accessing pages not yet published

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > January 2005 > Programmatically accessing pages not yet published





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Programmatically accessing pages not yet published
Dilip Kumar

2005-01-27, 8:47 pm

I want to show a list of upcoming events on one of my pages. Each event is a
separate posting with StartDate and ExpiryDate defined by the user (i.e.
author). So, when I iterate through the channel.postings collection, I don't
see the ones that have the StartDate in the future. I would like to access
the Expired pages also. How can I get to those postings in the Publishing
mode?

Thanks.
Dilip Kumar
Mei Ying [MVP]

2005-01-28, 7:51 am

Hi

For storing event dates, you may want to keep them as values in custom
properties instead. In that way, you can get all your postings in published
mode and subscribers get to see the list as well. Just a thought :-)

There's no way to get expired/approved postings in published mode. You will
have to switch to unpublished mode and iterate the list from there.

--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
Book: http://www.packtpub.com/book/mcms
---
"Dilip Kumar" <Dilip Kumar@discussions.microsoft.com> wrote in message
news:6D196CF4-D10C-481C-A463-B64546EE9A8B@microsoft.com...
>I want to show a list of upcoming events on one of my pages. Each event is
>a
> separate posting with StartDate and ExpiryDate defined by the user (i.e.
> author). So, when I iterate through the channel.postings collection, I
> don't
> see the ones that have the StartDate in the future. I would like to access
> the Expired pages also. How can I get to those postings in the Publishing
> mode?
>
> Thanks.
> Dilip Kumar



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com