|
Home > Archive > Microsoft Content Management Server > September 2004 > MCMS Custom Property Placeholder
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 |
MCMS Custom Property Placeholder
|
|
| Will Thomas 2004-09-06, 5:48 pm |
| Hi group,
I've been playing around w/ a custom property placeholder which
displays my custom properties while in authoring mode on my posting.
Everything works fine except when I create a new posting and attempt a
save...error message...as I expected to see from various groups
messages I've read.
Well, I went ahead and placed this custom property placeholder in a
user control and I fire the Saved_Content (sorry if I misuse the exact
method and/or property names as I'm typing this message from memory)
event on page save.
I override the Saved_Content method and pass the argument variable (e
by default) into a method within my Custom Property Placeholder which
will save the custom property information.
Using the e.Posting as my posting instead of the
CmsHttpContext.Current.Posting value and viola, the information is
saved for new and existing postings.
So more information. The custom property placeholder is an
XMLPlaceholder control. The account I'm using within MCMS is an admin
user role.
I have completed limited testing for this work around but I thought
I'd offer it to the group for scrutiny.
Let me know what you all think.
Thanx,
Will
| |
| Stefan [MSFT] 2004-09-06, 5:48 pm |
| Hi Will,
that is a valid approach.
It is not allowed to use CmsHttpContext inside an event handler.
You need to use the event context rather than the CmsHttpContext.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"Will Thomas" <thomaswh4@hotmail.com> wrote in message
news:10237356.0409060737.75c516c3@posting.google.com...
> Hi group,
>
> I've been playing around w/ a custom property placeholder which
> displays my custom properties while in authoring mode on my posting.
> Everything works fine except when I create a new posting and attempt a
> save...error message...as I expected to see from various groups
> messages I've read.
>
> Well, I went ahead and placed this custom property placeholder in a
> user control and I fire the Saved_Content (sorry if I misuse the exact
> method and/or property names as I'm typing this message from memory)
> event on page save.
>
> I override the Saved_Content method and pass the argument variable (e
> by default) into a method within my Custom Property Placeholder which
> will save the custom property information.
>
> Using the e.Posting as my posting instead of the
> CmsHttpContext.Current.Posting value and viola, the information is
> saved for new and existing postings.
>
> So more information. The custom property placeholder is an
> XMLPlaceholder control. The account I'm using within MCMS is an admin
> user role.
>
> I have completed limited testing for this work around but I thought
> I'd offer it to the group for scrutiny.
>
> Let me know what you all think.
>
> Thanx,
> Will
|
|
|
|
|