Microsoft Content Management Server - Getting PostingCollection in Live mode

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > September 2004 > Getting PostingCollection in Live mode





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 Getting PostingCollection in Live mode
Kelvin Wong

2004-09-22, 9:47 pm

Hi all,

In live mode, is it possible to get the PostingCollection under a channel
including the new pages (which is just saved and not approved and
submitted)? As I know the PostingCollection will only include published page
in live mode.

Thanks,
Kelvin Wong


Angus Logan

2004-09-22, 9:47 pm

Hi Kevin,

See
http://groups.google.com/groups?hl=...7de2dc05&rnum=1

The gist of it is:
"these items are only accessable in a context that is in Unpublished mode.
No way to access them in Published mode."

An alternative solution is

"You can use the CMSApplicationContext class. Then you can
authenticate and specify the publishing mode you need.

Dim objAppContext as CmsApplicationContext = new
CmsApplicationContext()

objAppContext.AuthenticateAsCurrentUser
(PublishingMode.Unpublished)"

Regards
--
________________________________________


Angus Logan (MCAD/MCDBA/MCP)
Lead Software Developer
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________


"Kelvin Wong" <kelvinwong@AGENDA-asia.com> wrote in message
news:#KoLcG#mEHA.3352@TK2MSFTNGP15.phx.gbl...
> Hi all,
>
> In live mode, is it possible to get the PostingCollection under a channel
> including the new pages (which is just saved and not approved and
> submitted)? As I know the PostingCollection will only include published

page
> in live mode.
>
> Thanks,
> Kelvin Wong
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com