| Author |
set publishing StartDate for posting
|
|
| Anabhra 2006-02-21, 5:52 pm |
| Hi,
I want to set the startdate for the posting when a moderator approves a
page. The date will be say 24 hours from the time the moderator approves the
posting.
What is the best place to put this code?
thanks,
anabhra
| |
| Mei Ying [MVP] 2006-02-22, 2:47 am |
| Hi
You could put it in the workflow event handler: Posting_Approved event
handler. Check to see if the posting's state is Published/Approved and you'll
know if this is the last person in the workflow process. Bear in mind that
after you've set the date, the posting's state will be set back to
"WaitingForModeratorApproval". So you'll have to call the code that approves
the posting again.
--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Book: http://www.packtpub.com/book/mcms
Contact: meiyinglim@hotmail.com
---
"Anabhra" wrote:
> Hi,
>
> I want to set the startdate for the posting when a moderator approves a
> page. The date will be say 24 hours from the time the moderator approves the
> posting.
>
> What is the best place to put this code?
>
> thanks,
> anabhra
| |
| Anabhra 2006-02-22, 5:57 pm |
| Would that mean impersonating as a editor and approving it?
"Mei Ying [MVP]" wrote:
[vbcol=seagreen]
> Hi
>
> You could put it in the workflow event handler: Posting_Approved event
> handler. Check to see if the posting's state is Published/Approved and you'll
> know if this is the last person in the workflow process. Bear in mind that
> after you've set the date, the posting's state will be set back to
> "WaitingForModeratorApproval". So you'll have to call the code that approves
> the posting again.
>
> --
> regards
> Mei Ying
> ---
> Blog: http://meiyinglim.blogspot.com
> Book: http://www.packtpub.com/book/mcms
> Contact: meiyinglim@hotmail.com
> ---
>
>
> "Anabhra" wrote:
>
| |
| Mei Ying [MVP] 2006-02-23, 2:53 am |
| Hi
There should be no need to impersonate if the user approving the posting is
the moderator.
Btw, moderator and editor approval requirements are quite different. There
may be times where the posting may require editor approval but not moderator
approval and vice versa.
--
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Book: http://www.packtpub.com/book/mcms
Contact: meiyinglim@hotmail.com
---
"Anabhra" wrote:
[vbcol=seagreen]
> Would that mean impersonating as a editor and approving it?
>
> "Mei Ying [MVP]" wrote:
>
| |
| Anabhra 2006-02-26, 10:46 am |
| Thanks Mei Ying.
I am able to set the time on posting_aprroved event.
However, one request from user's is that when the moderator hits the submit
buttn, they want to set the date and auto approve the posting.
I am able to do the later part to auto approve (by impersonating as editor)
but when I try to set the date in the cmsposting_submit event, it puts the
posting back in "Waiting for moderator approval" state.
what happens when I change the attribute in the cmsposting_submitted event?
thanks,
anabhra
"Mei Ying [MVP]" wrote:
[vbcol=seagreen]
> Hi
>
> There should be no need to impersonate if the user approving the posting is
> the moderator.
>
> Btw, moderator and editor approval requirements are quite different. There
> may be times where the posting may require editor approval but not moderator
> approval and vice versa.
>
> --
> regards
> Mei Ying
> ---
> Blog: http://meiyinglim.blogspot.com
> Book: http://www.packtpub.com/book/mcms
> Contact: meiyinglim@hotmail.com
> ---
>
>
> "Anabhra" wrote:
>
|
|
|
|