|
Home > Archive > Microsoft Content Management Server > May 2006 > create connected postings upon new posting
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 |
create connected postings upon new posting
|
|
|
| Hi
I'm new to mcms and a bit puzzled how to do the following:
Once the user creates a new posting using based on a specific template,
this posting has to be copied to several channels (as connected
postings).
I have tried to override the console event PerformActionBehavior, but
that led to some problems with the posting being readonly.
Can anybody point me in the right direction ?
Regards
Morten
| |
| Stefan [MSFT] 2006-05-19, 7:15 am |
| Hi Morten,
I would suggest to do this in a workflow event.
E.g. inside CmsPosting_Submitted or CmsPosting_Approved event.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"mni" <nielsen72@gmail.com> wrote in message
news:1148037094.385237.322140@j73g2000cwa.googlegroups.com...
> Hi
>
> I'm new to mcms and a bit puzzled how to do the following:
>
> Once the user creates a new posting using based on a specific template,
> this posting has to be copied to several channels (as connected
> postings).
>
> I have tried to override the console event PerformActionBehavior, but
> that led to some problems with the posting being readonly.
>
> Can anybody point me in the right direction ?
>
> Regards
> Morten
>
| |
|
| Thanks for the prompt response.
I actually also tried to go that way too by building class and
implement the IHttpModule interface, handling the
postingEvents.Submitted event. I believe it's the same as implementing
it in the global.asa ?
Creating the connected posting works fine from here, but:
1.
So my eventhandler looks like this PostingChangedEventHandler(Object
sender, ChangedEventArgs e)
But how do I check that this event is raised from a specific template ?
Because every submit will raise this event.
2.
I need to access some html based checkboxes on my template. They'll
tell what channel guids to connect to posting to.
Is it possible to get access to the page via the posting object ?
Regards
Morten
| |
| Stefan [MSFT] 2006-05-19, 1:16 pm |
| Hi Morten,
1) e.Target will hold the posting object.
(e.Target as Posting).Template will give you the template object.
2) the content of the form field can be retrieved from the Request.Form
collection.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"mni" <nielsen72@gmail.com> wrote in message
news:1148040482.216699.75170@i39g2000cwa.googlegroups.com...
> Thanks for the prompt response.
>
> I actually also tried to go that way too by building class and
> implement the IHttpModule interface, handling the
> postingEvents.Submitted event. I believe it's the same as implementing
> it in the global.asa ?
> Creating the connected posting works fine from here, but:
>
> 1.
> So my eventhandler looks like this PostingChangedEventHandler(Object
> sender, ChangedEventArgs e)
> But how do I check that this event is raised from a specific template ?
> Because every submit will raise this event.
>
> 2.
> I need to access some html based checkboxes on my template. They'll
> tell what channel guids to connect to posting to.
> Is it possible to get access to the page via the posting object ?
>
> Regards
> Morten
>
| |
| Morten 2006-05-23, 7:15 am |
| Thank you (vielen dank :-) ) for the answer Stefan, I got everything
working now.
Regards
Morten
|
|
|
|
|