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 March 24, 2018 12:15)

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")|(user)zbynekh|(hash)bd894002e1da0e48727a919c10fa96baf8c70eadce20d1c8955b4966934bb584%}

0 votesVote for this answer Mark as a Correct answer

Anton Grekhovodov answered on May 16, 2017 11:23 (last edited on March 24, 2018 12:15)

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") |(user)zbynekh|(hash)e8df892080d3a72e32fac9cd45eacf705095b45371709e79dd322eb8a73fe653%} or {% CurrentDocument.NodeAliasPath == "/Articles" |(user)zbynekh|(hash)eb2568e607f88bdb2581156666baf4033053f4bc1289f1f918e54021cf39a466%}
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.