Skip to main content
added 81 characters in body
Source Link
variable
  • 4.4k
  • 13
  • 76
  • 139

How to provision file to all webs in site collectionSharePoint document library?

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere. If we set set RootWebOnly="False", then also the file is not deployed any where.

  3. If we set url to http://serverurl:port/ and set RootWebOnly="True" or "False", then the file is deployed to root web.

How to provision file to all webs in site collection?

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

  3. If we set url to http://serverurl:port/ and set RootWebOnly="True" or "False", then the file is deployed to root web.

How to provision file to SharePoint document library?

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere. If we set set RootWebOnly="False", then also the file is not deployed any where.

  3. If we set url to http://serverurl:port/ and set RootWebOnly="True" or "False", then the file is deployed to root web.

added 123 characters in body
Source Link
variable
  • 4.4k
  • 13
  • 76
  • 139

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

  3. If we set url to http://serverurl:port/ and set RootWebOnly="True" or "False", then the file is deployed to root web.

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

  3. If we set url to http://serverurl:port/ and set RootWebOnly="True" or "False", then the file is deployed to root web.

added 136 characters in body
Source Link
variable
  • 4.4k
  • 13
  • 76
  • 139

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web. How to deploy this to all webs in the sitecollection?

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web. How to deploy this to all webs in the sitecollection?

We have added a VS module and foll. is the elements.xml:-

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="Module1" Url="Shared Documents" RootWebOnly="True" Path="Module1" >
    <File Url="Sample.txt" Type="GhostableInLibrary"/>
  </Module>
</Elements>

Since RootWebOnly=true, the file gets deployed only to the RootWeb. Now, if we remove this, then, still the file gets deployed only to root web.

  1. How to deploy this to all webs in the sitecollection?

  2. If we set url to http://serverurl:port/subsite and set RootWebOnly="True", then the file is not deployed anywhere.

Source Link
variable
  • 4.4k
  • 13
  • 76
  • 139
Loading