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

Any idea what the Url format should be for any site with a SitePages library?

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="MOWikiHomePage" List="119" Url="/SitePages">
    <File Path="MOWikiHomePage\Sample.txt" Url="Sample.txt" Type="GhostableInLibrary" IgnoreIfAlreadyExists="FALSE"/>
  </Module>
</Elements>

The URL '/SitePages' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try removing the "/" because Module can figure out the right path for you depending on the scope of the FEATURE.

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.