Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:28:29+00:00 2026-06-14T00:28:29+00:00

In our SharePoint project, we have a page layout in which the user can

  • 0

In our SharePoint project, we have a page layout in which the user can set a custom checkbox (“Show as news”) in edit mode. Now our customer asked if we can have this checkbox set to checked per default.

The checkbox is realised as a <SharePointWebControls:BooleanField> in the layout page, with a corresponding <Field Type="Boolean"> in the sitecolumns definition.

I tried adding a <Default>1</Default> to the sitecolumn definition, and together with changing the default value for the site column through SiteSettings, this worked and the checkbox appeared as checked by default for new pages. However, we have other layouts which also use that field (same content type) and for which we don’t want to have the value checked per default.

So, my idea was to set the field value in an event receiver if a page is created. The receiver is called correctly and the item is available, however I can’t seem to find a way to determine the page layout from the item I get through the event properties. I tried accessing the layout directly through the field item["PublishingPageLayout"] and also by getting the page as PublishingPage, then calling publishingPage.Layout.Name but in both cases there is no value available (null) for the layout.

I’d be glad if anyone could suggest an alternative way to find out the layout. Or maybe completely other way to achieve what I want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:28:30+00:00Added an answer on June 14, 2026 at 12:28 am

    Other way to achieve what you want:

    Create a new content type based on this one. The new content type will have the checkbox checked by default and will only be used for this list. This way the other layouts will not be affected and will work independently.

    Hope this helps?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have set up a SharePoint meeting workspace (using WSS 3.0) for our weekly
I have deployed an SSRS 2008 R2 project into our SharePoint Integration. This worked
We're using silverlight on our SharePoint site. When someone navigates to the page containing
We have a sharepoint instance on our network that we get automatically logged into
I have created a new SharePoint 2007 MOSS Intranet. Our admin people are purchasing
I'm working on a SharePoint 2010 project. We have a usercontrol to include all
Our environment consists of Project Server 2007 and MOSS 2007. We have around 750
I have created a custom list in SharePoint 2010 programmatically. It works fine on
We have a problem with our current TFS installation. For some reason, which I
My company has a project for which I proposed using SharePoint Enterprise 2010. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.