Edit master page editable text in child page

john martin asked on May 15, 2017 19:24

I have created master page and all pages are inherited with that master page. My master page contains header and footer sections. In footer section i have site pages like other websites have. But I have a requirement for few pages I need to add some text (like disclaimer text etc.) as well after footer. If i add it on master page it will appear on all website pages and I have a requirement to show only on fewer pages. Any idea how to do it ?

Recent Answers


Peter Mogilnitski answered on May 15, 2017 20:00 (last edited on December 10, 2019 02:30)

Create a text field called "disclaimerText" for your page type(s). Now you can edit disclaimer text in the form on your pages. In the master template add static text web part with {%CurrentDocument.GetValue("disclaimerText")|(identity)GlobalAdministrator%}

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on May 16, 2017 11:23 (last edited on December 10, 2019 02:30)

You can do it as Peter suggested or if it only for few pages and disclaimer text is the same for the pages, you can put a webpart with the text in the master page and change 'Visible' property for it by adding macro rule like {% CurrentDocument.NodeAliasPath.StartsWith("/News") |(identity)GlobalAdministrator%}
You can use any conditions there.

1 votesVote for this answer Mark as a Correct answer

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