Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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="http://schemas.microsoft.com/sharepoint/">
  <Module Name="CopyItem" Url="SitePages" Path="CopyItem">
    <File Url="CopyItemTemplate.aspx" Name="CopyItem.aspx" Type="Ghostable" />
  </Module>
</Elements>
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

1 Answer 1

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

 
discard

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.