0

I have a .js script file that I would like to embed within various publishing pages. Is there a web part or something I can use to reference my js file, rather than copying and pasting it into every script editor block, for each publishing page?

thanks

1 Answer 1

2

I'd recommend creating a custom page layout and putting the js file link directly into the page layout. Then when publishing pages are created using your page layout, there isn't any extra step you need to do. I've done this in 2010 in several places and it works well.

http://www.learningsharepoint.com/2013/03/03/create-a-custom-page-layout-in-sharepoint-2013/

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.