Questions tagged [module]

Each of a set of standardized parts or independent units that can be used to construct a more complex structure, such as a piece of software.

Filter by
Sorted by
Tagged with
0 votes
2 answers
411 views

React webpart OnClick event fail to call a module function

I am working on a React spfx webpart. I inserted below code in my tsx file: <a href="#" className={ styles.button } onClick={ ()=> alert('greeting!') } > <span ...
Mark L's user avatar
  • 4,065
1 vote
0 answers
489 views

How to use jquery.slimscroll in spfx

I want to use slimscroll for a couple of SPFX webparts but having trouble to get things going. I used: npm i jquery-slimscroll npm i @types/jquery.slimscroll next to a couple of other modules (...
HJB's user avatar
  • 11
1 vote
1 answer
222 views

SharePoint 2016 Module - Reference file from another folder?

I'm developing some WebParts in a SharePoint 2016 project and I'm using a SharePoint Module to deploy some needed assets (js lib, images, ...) to the Style Library list and this is working fine. Some ...
Aelys's user avatar
  • 31
1 vote
0 answers
48 views

Add Document Library in my default.aspx site definition

I'm currently using SharePoint 2016. I want to add a document library webpart to my site definition landing page in the . I have this in my default.aspx <WebPartPages:WebPartZone runat="server" ...
poojay's user avatar
  • 71
0 votes
3 answers
650 views

SharePoint Online, deploy module in non-root Site Collection(how to load JS dynamically correctly)?

For example I have a solution with three files in module: Loader.html: <div id="exampleDiv" style="background-color: yellowgreen">click here..</div> <script type="text/javascript" ...
Gennady G's user avatar
  • 1,623
2 votes
0 answers
15 views

Deploy page with content already inside [duplicate]

how can I deploy a sharepoint page using xml modules, with content already inside the publishing page content field? Any examples I can use?
Eddie's user avatar
  • 93
0 votes
1 answer
464 views

SharePoint ReplaceContent="TRUE"

I am trying to deploy pages to a pages library for the second time by activating a feature. The module has the attribute: ReplaceContent="TRUE". When I deactivate the feature, everything goes fine. ...
Jacky's user avatar
  • 319
1 vote
1 answer
455 views

How to add a files to site asset inside the sub sites?

I need to add some files inside the Site collection and subsite site asset Library, So I tried module to achieve this, It's working for the site collection, but It's not working for Subsites, Please ...
Debugger's user avatar
  • 1,722
0 votes
1 answer
793 views

The specified list does not exist - Module

I am trying to upload an html file to SharePoint. The library exists there. When activating the feature, I am having an error. This is my module: <?xml version="1.0" encoding="utf-8"?> <...
Jacky's user avatar
  • 319
0 votes
1 answer
1k views

Unable to deploy custom files to Style library in SharePoint 2013

I need to deploy the custom files like (CSS,js,images) into Style Library folder in SharePoint 2013 by using Visual Studio. I created a module and edited the element.xml as <?xml version="1.0" ...
Debugger's user avatar
  • 1,722
1 vote
0 answers
52 views

.aspx page deployed to library through module does not pull masterpage

I am trying to deploy a "plain" .aspx page (no code-behind) to a library in a SharePoint site using a module (web scoped feature). I don't even really need an .aspx page, all I really need is an HTML ...
Dylan Cristy's user avatar
  • 12.7k
1 vote
1 answer
31 views

Error creating site from template with feature with module

I created with Visual Studio a module to uploade a file. And a feature associated. Currently the site has this feature desactivated. I create a site template based on this site. When I create a ...
Juan Pablo Pussacq Laborde's user avatar
0 votes
0 answers
58 views

SharePoint Sandbox Solution Error

I have developed web template in visual studio sandbox solution. Sandbox solution is worked fine in on premises but when i am going to activate WSP and create new sub site using this web template i m ...
Dipen Shah's user avatar
  • 1,128
0 votes
1 answer
213 views

Provision File in ' Features ' in 15 hive [closed]

I have a requirement in which I have to add NWF (Nintex workflow) file in the Features folder. Means on feature activation the file for the workflow should get provisioned in the physical folder, say, ...
Vishwas Goswami's user avatar
1 vote
1 answer
195 views

PageLayout in module is not updating with GhostableInLibrary proerty set to true

After deploying solution, I again made some changes to custom page layout content and deployed. But the page layout is not getting over written old page layout is still there. tried deleting Page ...
Raghavendra C's user avatar
0 votes
1 answer
46 views

Why does my custom pagelayout not overwrite the old version?

I have created a custom page layout. It is deployed for the first time. I did modified and deployed it again. Why does the pagelayout is still showing me the old one? On the 15 hives folder I can see ...
Ola's user avatar
  • 4,405
0 votes
2 answers
3k views

"Failed to instantiate file from module: The specified list does not exist." when deploying file through module

I am trying to deploy two files to a custom list. I created two features for this: one that holds the list definitions along with the module and one that contains the list instances. Both are in the ...
LeonidasFett's user avatar
1 vote
1 answer
73 views

How to modify default site page via features?

I need to set the web part I added to a provider hosted app as a default page in the site via a module. Can someone tell me please how to modify that module in order to load the web part as a default ...
N.Sahraoui's user avatar
0 votes
1 answer
120 views

provision sharepoint page using visual studio Module

I need to provision SharePoint page using Visual Studio module, and the following is the module file: The page deployed successfully and I can open it, but if I edit the page properties and ...
jobin's user avatar
  • 573
0 votes
1 answer
69 views

Module XML with multiple search result web part are conflicting

I have a module file which contains two search result web part. These two search result web part were both configured then exported as .webpart file via the SP UI. I used the exact content of the ....
Joe's user avatar
  • 483
2 votes
1 answer
3k views

Web template deployment of a custom default page using features

I'm trying to deploy a web template to Sharepoint 2013 as a sandboxed solution with Visual Studio. I was hoping that I could "replace" the default.aspx with my own page. The deployment consists of two ...
user29651's user avatar
0 votes
2 answers
326 views

Get id of an element by js in a module item

I don't know if i choose the correct title. Here's my probleme, I've created a module in wich I can put my js/css (http://img4.hostingpics.net/pics/586674moduleJs.png) and I would like to get the id ...
Timon's user avatar
  • 57
1 vote
1 answer
2k views

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" ...
variable's user avatar
  • 4,457
2 votes
3 answers
6k views

IgnoreIfAlreadyExists is set to True but updates happen

We have a VS project module with 'IgnoreIfAlreadyExists' set to true. What this means is that: if a similar file exists then it will ignore this VS file. However, whenever we make change to the file ...
variable's user avatar
  • 4,457
2 votes
1 answer
1k views

Module property RootWebOnly

We are deploying file using VS project --> module. In the elememts xml file there is an option for RootWebOnly = true/false. What happens if we set it to: a. true b. false <Module Name="...
variable's user avatar
  • 4,457
0 votes
1 answer
159 views

Xslt file not overriden on sub sitecollection

I have modified the ContentQueryMain xsl file and want to override it when I deploy. So far it works fine, but I have multiple site collections where I also need to override the ContentQueryMain xsl ...
user avatar
1 vote
0 answers
305 views

create and use nested master page in aspx page as module for sharepoint 2013 using visual studio 2012

I have added one aspx page by taking Module in Visual Studio. I have to do something like; I have to show messages for error and successful completion of the task i.e. Item added successfully I have ...
Prasad Gavande's user avatar
1 vote
2 answers
2k views

How to link aspx form to content type's new item adding?

I have created one content type and list along with module (as aspx) page in visual studio , Now when I click on new item of list then i can open the newly created form but I want something like, when ...
Prasad Gavande's user avatar
1 vote
0 answers
34 views

Default.aspx via code?

Would it be possible and recommended to add a custom Default.aspx (when no publishing nor wiki front page are enabled) via code (remote provisioning) vs adding it via a Module declaratively? are there ...
thomius's user avatar
  • 2,808
0 votes
1 answer
104 views

Master page via Module vs code

What are the benefits of adding a master page via module when compared to adding it via code? I think traditionally it has been added via Modules but now the cloud and remote provisioning ...
thomius's user avatar
  • 2,808
0 votes
0 answers
3k views

Sharepoint 2013 deploying files using a module to subsites

I wanted to deploy files to lists already created. This works but only for the top level site. I used the following elements.xml **<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="...
user20062's user avatar
4 votes
1 answer
8k views

Webpart added to webpart page using modules is not visible in edit page

I am provisioning a webpart to a webpart page in sandboxed solution. here is the module's element.xml <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/...
user4205's user avatar
  • 601
1 vote
0 answers
3k views

Adding a webpart page with some webparts using Module and setting that as home page in sharepoint online

I have created a web template(inheriting from STS template) which includes few document libraries and lists. Document libraries are created using list definition while lists are OOTB lists included ...
user4205's user avatar
  • 601
2 votes
3 answers
5k views

Files deployed in module cannot be found

I'm trying to deploy a selection of pages and master pages in modules but I'm encountering the same problem with all of them. When I try to navigate to a page, I get a File Not Found error (with ...
MorayM's user avatar
  • 342
0 votes
2 answers
2k views

Deploy masterpage to subsite using module

I created a search-center and want to apply a custom masterpage to it. I want to deploy the masterpage using a module and the feature of my solution. I created a module and the Elements.xml looks like ...
bash.d's user avatar
  • 229
1 vote
0 answers
363 views

Module Folder in Sharepoint is not deployed with the wsp file

I am updating my solutions from Sharepoint 2010 to 2013. I needed to make a little workaround because SP 2013 refused to find my pictures in the images folder. So I created a module folder for SP 2013 ...
DaRula's user avatar
  • 11
1 vote
1 answer
2k views

Gantt view on default page

I'm trying to put gantt view of the list on the default page of the site. For common views, i'm using module with the default.aspx page and view i need this way: <?xml version="1.0" encoding="utf-...
Dmitry's user avatar
  • 13
0 votes
1 answer
457 views

How to reference/write the file path in Elements.xml for UserControl in Sandbox Solution?

I have 1 solution (which is deploying as SandBox Solution). I have added JavaScript files, Images, Application Page & UserControl in one Module under project folder. I have one Element.xml file ...
Shahid's user avatar
  • 229
6 votes
1 answer
909 views

Can someone explain what the doGUIDFixUp attribute in the File Element Module does

In my development I just recently noticed the attribute "doGUIDFixUp = TRUE|FALSE". I tried to google more about this attribute but couldn't find anything useful. The MSDN site doesn't explain this ...
Ed Mendez's user avatar
  • 188
1 vote
1 answer
677 views

aspx page in module and ghosted web parts

I am making a webtemplate. This webtemplate activates a hidden feature which contains a module, deploying the default.aspx page. The module looks like this: <?xml version="1.0" encoding="utf-8"?&...
Kenneth Van Coppenolle's user avatar
0 votes
0 answers
82 views

Site-scoped feature with both Modules and Visual Web Parts

I have a Feature with Modules that place files in the Master Page Gallery, and I recently added Visual Web Parts to the feature. Then I realized at some point the copying of files into the Gallery had ...
MerdePoint's user avatar
0 votes
1 answer
3k views

Page not appearing in site pages library

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' ...
user1786107's user avatar
0 votes
1 answer
3k views

Invalid URL error when programmatically deploying files to the Style Library using a Module

We use a feature to deploy files that are common to our webparts to the Style Library in SharePoint Server 2010 and recently we came across the problem where files were not being updated when we ...
B-K's user avatar
  • 203
1 vote
3 answers
3k views

Deploying wiki pages with web parts

This is probably a very basic question to many, but my background is as a SharePoint developer. I have done very little with wiki pages, or site pages in general. I am creating a SharePoint 2010 site ...
JasonV's user avatar
  • 793
2 votes
1 answer
643 views

Making a view readonly?

I have a module that deploys a site page "Archives". I want to set up this page to show the content of a list readonly, whatever permissions are granted to the connected user. I have build this ...
Steve B's user avatar
  • 7,488
7 votes
0 answers
2k views

How can I specify the ID of a XsltViewWebPart?

In a module, I'm deploying a webpart page where I put a view to a list: <View WebPartZoneID="Body" WebPartOrder="3" List="related" BaseViewID="4" ...
Steve B's user avatar
  • 7,488