1

I have a javaScript file that pulls info from a custom SharePoint list. I would like to use this setup on some of my other sites as well. How can I make a sharepoint app so that I can click and drop the app without having to create a new list and copy the js file every time. I don' want to publish the app just for my personal use on my websites.

5
  • Why not simply save the site as template? Commented Nov 3, 2015 at 19:00
  • Some sites are team sites others are publishing sites. Commented Nov 3, 2015 at 19:48
  • Can you be more clear about where this js file must be deployed in the site and from which page is referenced? Commented Nov 3, 2015 at 19:54
  • I reference the JS file in the master page. It should be allowed to be deployed on any of the sites pages. Commented Nov 3, 2015 at 20:24
  • Are these sites in the same site collection? Please be more clear about your target environment. Commented Nov 3, 2015 at 22:02

1 Answer 1

0

You could create a Solution Package (Farm or Sandbox) in Visual Studio that uses Collaborative Application Markup Language (CAML) to create the List and a Module to provision the JavaScript file into a Library in the target site. This project would include a Feature that, when activated, would add the list and provision the JavaScript file.

This YouTube video will help you get started: SharePoint 2010 for ASP.NET Developers . This video was made for SharePoint 2010 but the concepts also apply to SharePoint 2013 and SharePoint Online.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.