We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15558
    • 108 Posts
    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 ?
      Sorry for that ⇧ , I'm no dev but I wanna try
      • 4172
      • 5,888 Posts
      did you try with very,very simple tpl-chunks to be sure, the issue isn't coming from code inside the tpl-chunks.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 15558
        • 108 Posts
        Sorry Bruno but at this date I bothered you for nothing.

        I updated the plug-in, made several tests that were contradictory, then took your own default chunks and re-populated them step by step until I was back to the initial state. I didn't change anything to my code. I can't get it. Everything seems to work fine again but I don't feel very confident now... I hope we won't have to speak about this again. Thank you for your time.
          Sorry for that ⇧ , I'm no dev but I wanna try