Answer the question
In order to leave comments, you need to log in
How to build isotope grid after ajax?
Display elements using pdoPage
<div id="pdopage">
<div class="portfolio-masonry rows" >
<div class="grid-sizer"></div>
[[!pdoPage?
&parents=`2`
&depth=`2`
&tpl=`WorksTpl`
&where=`{"template":25}`
&includeTVs=`img,category,video,work_head,work_desc,video_url,open`
&limit=`10`
&sortby=`menuindex`
&sortdir=`ASC`
&ajaxMode=`button`
]]
</div>
[[!+page.nav]]
</div>
$(document).on('pdopage_load', function(e, config, response) {
$('.portfolio-masonry').isotope('layout');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question