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

The following code supposed to add copyitem.aspx file to SitePages. I go to the subsite via SP Designer.

I can see "Site Objects" on the left navigation. I click on Site Pages and I get "The Document Library view cannot be displayed for this Web site.". However, I click on All Files (under site objects), I see a "SitePages" with Folder icon and sure enough CopyItem.aspx is there.

Please suggest.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="">
  <Module Name="CopyItem" Url="SitePages" Path="CopyItem">
    <File Url="CopyItemTemplate.aspx" Name="CopyItem.aspx" Type="Ghostable" />
share|improve this question
FYI: Only Team Collabaration List feature is enabled for the sub-site. – Rosie O'Donnell Dec 7 '11 at 19:47
up vote 0 down vote accepted

I enabled the "publishing feature" and sitepages became available and aspx files were saved in that location. Good luck.

share|improve this answer

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.