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

I want to deploy a page to the sitepages library. When i deploy this code it does not appear.

However when i go to the url manually e.g. contoso.com/SitePages/mytestpage.html, i get the 'save as' options with the page, which means it has been deployed fine, but i cant figure out why it does not appear in the list.

Below is my code.

Does this have anything to do with the fact that it is a html page and not a aspx page?

share|improve this question
    
I think your code was not posted due to some error. Can you try posting it again? –  Vardhaman Deshpande Nov 5 '12 at 12:46
add comment

1 Answer

up vote 1 down vote accepted

First thing I can think of is to check whether you have set the Type attribute of your file as GhostableInLibrary. This should make it appear in the list.

Eg:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Pages" Url="SitePages">
     <File Path="Pages\mytestpage.html" Url="mytestpage.html" Type="GhostableInLibrary" />
  </Module>
</Elements>
share|improve this answer
add comment

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.