MCMS Custom Property Placeholder
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > MCMS Custom Property Placeholder




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    MCMS Custom Property Placeholder  
Will Thomas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-06-04 10: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





[ Post a follow-up to this message ]



    Re: MCMS Custom Property Placeholder  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-06-04 10: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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register