Click here to Skip to main content
6,630,586 members and growing! (17,110 online)
Email Password   helpLost your password?
Enterprise Systems » Content Management Server » General     Intermediate

Quick editor for MCMS Postings

By Rooc

Quickly navigate through your channels and postings and edit the rawcontent of posting placeholders.
C#, .NET, Win2K, WinXP, Win2003, ASP.NET, Visual Studio, Dev
Posted:28 Apr 2004
Views:36,172
Bookmarked:16 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
3 votes for this article.
Popularity: 1.03 Rating: 2.17 out of 5
1 vote, 33.3%
1
1 vote, 33.3%
2

3

4
1 vote, 33.3%
5

Sample Image - CustomEdit.jpg

Introduction

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Rooc


Member
Developer since 1998 and mainly focused on web development. Currently employed as technical architect.
Occupation: Web Developer
Location: Netherlands Netherlands

Other popular Content Management Server articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 5 of 5 (Total in Forum: 5) (Refresh)FirstPrevNext
GeneralI got enough acroymns floating around in my head... PinsitebuilderErik Thompson9:22 29 Apr '04  
GeneralRe: I got enough acroymns floating around in my head... PinsussAnonymous4:45 30 Apr '04  
GeneralRe: I got enough acroymns floating around in my head... PinsitebuilderErik Thompson7:40 30 Apr '04  
GeneralPlaceholder Types PinmemberReiss6:06 29 Apr '04  
GeneralRe: Placeholder Types PinsussAnonymous4:46 30 Apr '04  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 28 Apr 2004
Editor: Smitha Vijayan
Copyright 2004 by Rooc
Everything else Copyright © CodeProject, 1999-2009
Web19 | Advertise on the Code Project