Render partial through the whole website

Hello!
I would like to know what is the best way to have a popup appear on all pages
I thought I could create a partial and display in onload in main.js
Any thoughts?

Thanks in advance

Hi @Julia! As you said you can create js function that requests partial via October CMS AJAX Framework. JavaScript API - October CMS - 3.x

Just call onAjax method, that is available everywhere without needing to write any code

example:

$.request('onAjax', {
    update: {'partialName': '.whereToRender'}
});
1 Like

Hi @ReaZzon ! Thank you so much for your reply! This is exactly what I needed