![]() |
Enterprise Systems »
Content Management Server »
General
Intermediate
Quick editor for MCMS PostingsBy RoocQuickly navigate through your channels and postings and edit the rawcontent of posting placeholders. |
C#, .NET, Win2K, WinXP, Win2003, ASP.NET, Visual Studio, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||

Sometimes, when you're working with MCMS, you quickly want to navigate through the channels and/or edit a Postings Placeholder's RawContent. The CustomEdit aspx page enables this.
It creates a list of subchannels and posting for the typed address. Clicking a channel causes a navigation to that channel. Clicking a posting causes the above screenshot to appear. On this page, you can quickly edit the name, display name and placeholder's RawContent for the selected posting.
Especially when you mess up an XmlPlaceholder, this may come in handy.
Clicking the save button causes a validation of the current logged on user like this:
CmsApplicationContext cxt = new CmsApplicationContext();
WindowsIdentity ident = HttpContext.Current.User.Identity as WindowsIdentity;
cxt.AuthenticateUsingUserHandle(ident.Token,PublishingMode.Update);
After that, it resets all the placeholders' RawContent values.
Posting p = (Posting)hi;
p.Name = Request.Form["NAME"];
p.DisplayName = Request.Form["DISPLAYNAME"];
foreach (Placeholder ph in p.Placeholders)
{
ph.Datasource.RawContent = Request.Form[ph.Name];
}
p.Submit();
cxt.CommitAll();
Hope it helps.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 28 Apr 2004 Editor: Smitha Vijayan |
Copyright 2004 by Rooc Everything else Copyright © CodeProject, 1999-2009 Web10 | Advertise on the Code Project |