Dynamic content on popup /modal /lightbox

Hello,

I’m testing on Bricks Playground if I manage to rebuild a section from another website I maintain.

It is a Porftolio section with a grid of thumbnails. Each thumbnail will opens an unique gallery of images in a lightbox. Technically it opens the content of the CPT itself, which is only slider with no header neither footer.

As I’ve read the docs: Popup Builder – Bricks Academy it shows it is possible to put popups inside queries, open them with bricksOpenPopup() and target them dinamically, but this would require me to build a popup for each portfolio item, as also I still couldn’t get rid of the portfolio CPT because it seems bricks templates are not queryable.

So,Is there a way to the popup template actually work as a template and load its content dinamically?

I’ve seen another thread in this forum mentioning BricksExtra would do this but the post is from 2022 and maybe there is a new function related to that in vanilla bricks. (or maybe in Bricksforge with I also am consiring to afford).

Thank in advance

To mark this as solved and for future reference:

I figured out bricks 1.9.4 released this exactly feature:

Search for ‘Ajax Popup’