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 957675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:44:37+00:00 2026-05-16T00:44:37+00:00

(I have also asked this question on SharePoint Overflow .) I have a SharePoint

  • 0

(I have also asked this question on SharePoint Overflow.)

I have a SharePoint feature I’m using to add some custom aspx files to the Pages Library.

When I activate the feature, I can visit the pages in-browser and they are visible in SPDesigner, but when I “View All Site Content” they are not there.

Why is this the case?

The Feature’s Elements File:

<?xml version="1.0" encoding="utf-8"?>
<Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="Pages" Url="Pages">
        <File Path="Example.aspx" Url="Example.aspx" IgnoreIfAlreadyExists="False">
            <Property Name="Title" Value="The Example" />
            <Property Name="ContentType" Value="Page" />
        </File>
    </Module>
</Elements>

The Aspx File:

<%@ Page language="C#" Inherits="System.Web.UI.Page,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" MasterPageFile="~masterurl/default.master"%>
<%-- deliberately left empty -->

(yup, it’s empty!)

Addendum

When I “visit the pages in-browser” I mean navigate to their URLs manually: http://myserver:PORT/subsite/Pages/Example.aspx

When I “View All Site Content” I am looking at the contents of the “Pages” list: http://myserver:PORT/subsite/Pages/Forms/AllItems.aspx

  • 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-05-16T00:44:38+00:00Added an answer on May 16, 2026 at 12:44 am

    I got an answer on SharePoint Overflow:

    The File Node should have Type=”GhostableInLibrary”, because “Pages” is a document library. When ever you provision a file in a document library you need to have ghostableinlibrary set.

    eg:

    
    <?xml version="1.0" encoding="utf-8"?>
        <Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
        <Module Name="Pages" Url="Pages">
            <File Path="Example.aspx" Url="Example.aspx" Type="GhostableInLibrary" IgnoreIfAlreadyExists="False">
                <Property Name="Title" Value="The Example" />
                <Property Name="ContentType" Value="Page" />
            </File>
        </Module>
    </Elements>
    
    

    So in the end the XML I’m using is…

    <?xml version="1.0" encoding="utf-8"?>
    <Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/">
        <Module Name="Pages" Url="Pages">
            <File Path="Example.aspx" Url="Example.aspx" IgnoreIfAlreadyExists="False" Type="GhostableInLibrary">
                <Property Name="Title" Value="The Example" />
            </File>
        </Module>
    </Elements>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been asked this question and have given this quite some thought but
I have asked this question before and it seemed that the code I was
I've already asked similar question on this issue on stack overflow already, but I
I originally asked this question on programmers.stackexchange.com, because I figured the answers would be
I got this question as an assignment: Packages/Naming We have created lot of packages
Probably someone has already asked this question but I'm not sure what I'm looking
I trying to build an application that is using the torrent technology to make
How do I begin learning Twisted? What books, documentation or tutorial do you guys
I'm interested, how is the dual input in a sensor fusioning setup in a
In our app, customers put in their own unique API credentials for Authorize.Net. So

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.