SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to find out page layout on ItemUpdated from the SPItemEventProperties in a page library. What property value should I be looking for.

share|improve this question
up vote 0 down vote accepted

You can't it isn't available, look at ItemUpdating and treat it as ItemUpdated.

Do this with


As it doesn't fire off updated.

Then layout is in


PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(SPContext.Current.Web);
SPFile file = SPContext.Current.File;
Guid guid = file.UniqueId;
PublishingPage publishingPage = PublishingPage.GetPublishingPage(publishingPages[id].ListItem);
string pageName = publishingPage.Layout.Name;
share|improve this answer
I figured it out SPListItem item = properties.ListItem;["PublishingPageLayout"] provides the value. – SharePoint Support Nov 30 '12 at 15:51
Can you post it as your answer please when it is ready. It isn't listed as being in there on msdn, but I did look :P – Hugh Wood Nov 30 '12 at 16:00

I would presume your talking about this?

if its through code then you need to make an event reciver and have this:

public override void  ItemUpdating(SPItemEventProperties properties) 

hope it helps :)

share|improve this answer
Thanks everyone for your answers. I figured it out SPListItem item = properties.ListItem; string pageLayout["PublishingPageLayout"].ToString(); provides the value. – SharePoint Support Nov 30 '12 at 15:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.