Microsoft Content Management Server - Problem retrieving channel postings

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2006 > Problem retrieving channel postings





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 Problem retrieving channel postings
Sean

2006-10-25, 7:17 am

Hi,

I have some code which retrieves the postings from a channel and generates a
list page. This code has been working fine in our production environment for
some time now (at least 6 months).

I've recently deployed an updated version of the site to out test
environment. Users have reported that the list pages now include postings
that have not yet been published/approved. That is, an existing posting that
has been edited but has been either not approved or declined (this behaviour
is when they are viewing the published site). The previously published
version of the posting is retrieved. This behaviour is different to how it
used to work where only postings that are currently in a published state
would be retrieved.

The list page still bahaves as expected in the production environment. I'm a
little confused by all this since I haven't changed the code which actuallly
retrieves the postings.

The code that I use is:
ChannelItem currentChannelItem = CmsHttpContext.Current.ChannelItem;
Channel currentChannel = (Channel) currentChannelItem.Parent;
The code then goes on to loop through the channel items and build up my list
page.

The test environment has recently had MCMS SP2 installed and we have also
started using the web author extensions posted by Stefan Gossner. Neither SP2
or the web author extensions are in production yet. Does anyone have any idea
as to why the behaviour has changed? I've tried uninstalling SP2 (without
success). The web author extensions relate to the authoring dialogs and I
can't see how they would have affected how MCMS returns postings in a channel.

Any insight would be gratefully received,
Sean
Stefan [MSFT]

2006-10-25, 1:26 pm

Hi Sean,

for postings which have been previously been published and which are now
waiting for editor approval or which have been declined there is still a
published version of the page which will show up in published mode.
This is by design.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights


"Sean" <Sean@discussions.microsoft.com> wrote in message
news:F8CE8651-36A3-490E-9297-D12E44B2907D@microsoft.com...
> Hi,
>
> I have some code which retrieves the postings from a channel and generates
> a
> list page. This code has been working fine in our production environment
> for
> some time now (at least 6 months).
>
> I've recently deployed an updated version of the site to out test
> environment. Users have reported that the list pages now include postings
> that have not yet been published/approved. That is, an existing posting
> that
> has been edited but has been either not approved or declined (this
> behaviour
> is when they are viewing the published site). The previously published
> version of the posting is retrieved. This behaviour is different to how it
> used to work where only postings that are currently in a published state
> would be retrieved.
>
> The list page still bahaves as expected in the production environment. I'm
> a
> little confused by all this since I haven't changed the code which
> actuallly
> retrieves the postings.
>
> The code that I use is:
> ChannelItem currentChannelItem = CmsHttpContext.Current.ChannelItem;
> Channel currentChannel = (Channel) currentChannelItem.Parent;
> The code then goes on to loop through the channel items and build up my
> list
> page.
>
> The test environment has recently had MCMS SP2 installed and we have also
> started using the web author extensions posted by Stefan Gossner. Neither
> SP2
> or the web author extensions are in production yet. Does anyone have any
> idea
> as to why the behaviour has changed? I've tried uninstalling SP2 (without
> success). The web author extensions relate to the authoring dialogs and I
> can't see how they would have affected how MCMS returns postings in a
> channel.
>
> Any insight would be gratefully received,
> Sean



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com