This question has been answered by multiple community members. See the first response.
[[$pages.header]]
[[$pages.toparea]]
[[$pages.nav]]
<div class="wrapper">
<div id="main" class="container">
<div id="content"> <!-- Content start -->
[[$jumbo]]
[[getResources? &parents=`0` &limit=`10` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &tpl=`pages.block` &sortdir=`ASC` &sortby=`{"menuindex":"ASC"}`]]
[[$pages.footer]]
If you're using phpthumbof, you might want to disable the plugin that clears the phpthumof cache every time the cache is cleared. That way cached images will survive the cache clear (assuming that's acceptable).
how can I set this up?Go to Elements, and look under Plugins for the phpThumbOfCacheManager plugin. Click on it, check "plugin disabled" and save.
Do not include other Chunks in Chunks! Things can get very confusing if you start going down that rabbit-hole.
[[Wayfinder? &startId=`0` &outerTpl=`pages.nav.outer` &rowTpl=`pages.nav.row` &firstClass=`` &lastClass =`` ]]
<a href="#home" class="scroll hidden-phone"><div id="subline" class="jumo"><div class="container"> <p>[[$mySlogan]]</p> </div></div> </a>
<div id="[[+longtitle]]"></div>
<div class="content-holder">
<div class="container">
[[+tv.myImg:notempty=`<div class="text-center"><a href="#[[+longtitle]]" class="scroll" ><img src="[[+tv.myImg:phpthumbof=`w=140&h=140& zc=1`]]" title="[[+description]]" alt="[[+longtitle]]" /></div></a> `]]
[[+id:isnot=`1`:then=`<h2 class="text-center">[[+pagetitle]]</h2>`:else=``]]
[[!+modx.user.id:is=`1`:then=`
<a class="login" target="_blank" href="/manager/?a=30&id=[[+id]]" title="edit">Edit Page</a>`]]
[[+content]] </div>
[[$connectbutton? &introtext=`[[+introtext]]`]]
</div>
[[+id:isnot=`2`:then=`<hr class="soften">`:else=``]][[getCache? &element = `Wayfinder` &cacheKey = `menu_cache` &cacheExpires = `0` &startId=`0` &outerTpl=`pages.nav.outer` &rowTpl=`pages.nav.row` &firstClass=`` &lastClass =`` ]]
var topic = '/getcache/cache/partition/refresh/menu_cache/';
if (this.console == null || this.console == undefined) {
this.console = MODx.load({
xtype: 'modx-console'
,register: 'mgr'
,topic: topic
,show_filename: 0
});
} else {
this.console.setRegister('mgr', topic);
}
this.console.show(Ext.getBody());
MODx.Ajax.request({
url: MODx.config.assets_url+'components/getcache/connector.php'
,params: { action: 'cache/partition/refresh', partitions: 'menu_cache', register: 'mgr' , topic: topic }
,listeners: {
'success':{fn:function() {
this.console.fireEvent('complete');
},scope:this}
}
});
return false;
&includeTVList = `myImg`
[[getResources? &parents=`0` &limit=`10` &includeContent=`1` &resources=`-1,-2,-3,-7,-18,-9` &includeTVs=`1` &processTVs=`1` &tpl=`my.list` &sortdir=`ASC` &sortby=`{"menuindex":"ASC"}`]]<div class="text-center"> <a class="scroll" href="#[[+longtitle]]"> <img src="[[+tv.myImg:phpthumbof=`w=120&h=120&zc=1&q=100 `]]" title="[[+description]]" alt="[[+longtitle]]" /> </a> <h4 >[[+pagetitle]]</h4> <p class="text-left">[[+description]] [[$my.liste? &longtitle=`[[+longtitle]]`]] </p> </div> [[+idx:mod=`2`:eq=`0`:then=`<div class="clearfix"></div>`:else=``]]