Get the approved version of af posting

Get the approved version of af posting

Post by Tony Fabia » Wed, 11 Feb 2004 17:45:38


Hi,

How do i get the approved version of a posting?

Any idea?

Kind regards

Tony
 
 
 

Get the approved version of af posting

Post by Stefan [MS » Wed, 11 Feb 2004 18:09:26

Hi Tony,

not sure what you mean.
In published mode you can ONLY get the approved version of a posting. In
unpublished mode you will receive the unpublished (so potentially unapproved
version) of a posting.
Ensure that you are in the right mode and you will get what you are looking
for.

To always return the approved version use Posting.Revisions().
This will return all history versions of the Postings in approved state.

Cheers,
Stefan.

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

 
 
 

Get the approved version of af posting

Post by Tony Fabia » Wed, 11 Feb 2004 18:18:33

Hi,

I will be more specific ;-)

I am creating a connected postings using the papi and needs to delete the
approved version of the connected posting if one exist.

I have so far:
1) Create connected posting
2) CommitAll()
3) Posting.Submit() ... creates at "Waiting for Editor Approvel" statuc
4) CommitAll()
5) Delete the approved version of the connected posting if one exist.

I can't do number 5 because a can figure out how to delete the approved
version.

Kind

regards

Tony







unapproved
looking
rights.
 
 
 

Get the approved version of af posting

Post by Stefan [MS » Wed, 11 Feb 2004 19:32:50

Hi Tony,

it is not possible to delete a specific revision.
You can only delete all revisions (the whole object) or nothing.
If you would delete the approved revision then the complete connected
postings is gone.

btw: why are you creating, submitting and approving a posting to finally
delete it again?

Cheers,
Stefan.

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

Get the approved version of af posting

Post by Tony Fabia » Wed, 11 Feb 2004 19:53:38

i Stefan,

If i create a connected posting in a channel with no moderators assigned the
posting will be automatically approved if the source posting is approved. I
don't want that to happend. All posting must be manually approved ... even
it there is no moderators assigned to the channel. In that case they must be
approved by an editor. When i submit the posting i get a version that is
"waiting for editor approval" (Which is what i want).

So now i "just" have to get rid of the approved version of the posting or
some how get rid of the live version of the posting.

Does that make sence? ;-)

/tony


"Stefan [MSFT]" < XXXX@XXXXX.COM > wrote in message
news:#$ XXXX@XXXXX.COM ...
rights.
the
In
state.


 
 
 

Get the approved version of af posting

Post by Stefan [MS » Wed, 11 Feb 2004 23:28:16

i Tony,

there is no way to achieve this.
The reason for this is the underlaying architecture.

All connected postings use ONE underlaying page object.
This page object is versioned. Editors approve changes to this page object.
Moderators on the other hand only approve changes on the posting object.
So there is no way to let editors approve one posting but not the other.

Cheers,
Stefan.

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


"Tony Fabian" < XXXX@XXXXX.COM > wrote in message
news:# XXXX@XXXXX.COM ...
the
I
be
statuc
approved
posting.


 
 
 

Get the approved version of af posting

Post by Stefan [MS » Wed, 11 Feb 2004 23:31:11

i Tony,

there is no way to achieve this.
The reason for this is the underlaying architecture.

All connected postings use ONE underlaying page object.
This page object is versioned. Editors approve changes to this page object.
Moderators on the other hand only approve changes on the posting object.
So there is no way to let editors approve one posting but not the other.

Cheers,
Stefan.

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


"Tony Fabian" < XXXX@XXXXX.COM > wrote in message
news:# XXXX@XXXXX.COM ...
the
I
be
statuc
approved
posting.


 
 
 

Get the approved version of af posting

Post by Tony Fabia » Wed, 11 Feb 2004 23:52:53

i Stefan,

hmmm thanks.

We will solve the problem by asigning a moderator to the channel.

Thank you for your help.

Kind regards

Tony

"Stefan [MSFT]" < XXXX@XXXXX.COM > wrote in message
news:#2cyJK# XXXX@XXXXX.COM ...
object.
rights.
approved.
even
must
or
finally
delete
exist.
are
no