EditableText on Masterpage?

James Jarrett asked on April 15, 2014 07:16

Is it possible to have an editable text web part on a master page that is editable from the pages using it? Seems like the answer should be no but I can always hope :-)

I have all of my javascript script loading and jquery ready initializations at the bottom of the master page but occasionally I need to add an initialization for only a single page.

I was hoping to use something like: statictext webpart (load scripts and initialize) editabletext webpart (page only initializations) - content after (close script)

That way in the rare case where I need an additional jquery ready initialization I can just drop it into the editable text web part using the Advanced editing under the Document > Properties tab. (Still on v7 so I don't where it has been moved in v8 yet)

Correct Answer

Brenden Kehren answered on April 15, 2014 16:35

You can place a static text webpart on the master page and set some crazy macro to hide/show or inherit the parent content if you want but I don't think you're going to get what you expecting.

What works well for me is I add the javascript webpart to the master page above the page placeholder and one after. The first one has jquery and anything else that needs to be "first" inline. The last one will have all the other scripts/initializations that need to happen on every page. Then I use the javascript webpart again on the pages you need to add individual/initializations scripts to. With the webpart you can choose where to place the script. It works much better than the static text webpart and is more identifiable.

1 votesVote for this answer Unmark Correct answer

Recent Answers

James Jarrett answered on April 16, 2014 15:22

Thanks Brenden. This sounds like a better approach which I will implement.

I only do crazy under heavy duress :-)

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.