Tell me more ×
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

1 Answer

up vote 0 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
Hi, Please have a look at this link as it does exactly what you want to do. msdn.microsoft.com/en-us/library/ee231567.aspx Also, the SharePoint community is very strong and most of the times, you will find the answers to your questions after a bit of googling. – Vardhaman Deshpande Nov 5 '12 at 15:43

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.