Hi folks,
I'm using SiblingNav on project pages like
these (see at bottom) and it works well.
Those projecs are stored into several containers, like in this tree :
SiblingNav does call the siblings not depending on the parent container, but on publishing dates (among ALL the projects). And it works almost fine.
Here is my call :
[[!siblingNav?
&limit=`1`
&parents=`8,9,10,11,12,13,14,15`
&prevTpl=`siblingPrevTpl`
&nextTpl=`siblingNextTpl`
&sortBy=`{"publishedon":"ASC"}`
]]
Now, for the first time, a project has been placed into id 12 "Boutiques" and its page won't be shown as it crashes :
Fatal error: Maximum execution time of 30 seconds exceeded in /xxx/xxx/xxx/core/xpdo/xpdo.class.php on line (random line number)
If I move the project in another parent, it will be fine.
Except if I place it in id 13 "Aménagement urbain", which was also empty up to now.
siblingPrevTpl :
<div class="sibPrev column-2 prev">
[[+_isactive:is=`1`:then=`
<div class="info-text prev">
<h3>Projet précédent</h3>
<h4><a href="[[~[[+id]]]]">[[+pagetitle]]</h4>
</div>
<a href="[[~[[+id]]]]">
<div class="siblingPic prev">
[[mgGetImages?
&resource=`[[+id]]`
&imageTpl=`siblingPicTpl`
&limit=`1`
&getResourceFields=`1`
]]
<img src="assets/img/sib_nav_prev.png" class="sibNavBtn prev" />
</div>
</a>
`:else=`
<div class="sibPrev empty">
</div>
`]]
</div>
I can't find what I've done wrong ; can somebody help me please ?