Single Rich Text Message That Can Show On Every Page Below That Pages Menu

Does anyone know a method to place a rich text message below each pages menu where you only have to create the message once and not as 24 rich text blocks for all 24 pages in the site?

I would like to place a statement (such as below) that appears on each page but that I only have to setup once and have each page point to that one message.

Here is the message as an example:

----This page was updated on 9/1/2018 and reflects the previous calendar quarters archived records accuracy. ----

Thanks.

Hello Kim,

it's simple you have to call simple ajax request (or you can just show a view with top 3 records)  order by date .

 

Regards,

Sunny Singla

 

15024358068 Thanks for the code! Would you mind sharing how I could pull from the database so that the person posting the message doesn't have to mess around with the Javascript?

I have an object called "news" and I would like to pull just the most recent record or possibly the 3 most recent records. Any help you can provide would be greatly appreciated. Thanks!

Hello Pat,

 

This can be easily handle by using below JS code

 

$(document).on('knack-scene-render.any', function (event, view, records) {
var Text ="Text to show on each page";
$("#ForEachPage").remove();
$(".kn-info-bar").after("<textarea id='ForEachPage' ></textarea>");
$("#ForEachPage").val(Text);
});

Also you can fetch text from database as well .

 

Thanks

Sunny Singla

ssingla1985@gmail.com

+919855089359