We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16899
    • 284 Posts
    Hi All

    Now i´m having another little problem!!! I´m using getResources, getPage and Archivist in the same template.

    The getPage plugin are paginating pretty fine all the resources obtained from getResources. I´ve setup Archivist to show archives by year, but when i click on some year, simply don´t work, i mean, don´t filter me the results by year!!!!
    You can see what i´m talking about here http://www.jf-carvoeiro.pt/noticias-e-eventos/

    The code that i´m using is :

            <!-- Start Left Column -->
            <div class="grid-8">
     
    			<!-- Start Ultimas Noticias -->
    			<div id="ultimas-noticias">
    					
    					[[!getPage? &element=`getResources` 
    					&parents=`41` 
    					&toPlaceholder=`news-all` 
    					&tpl=`latest-news` 
    					&tplLast=`latest-news-last` 
    					&limit=`5` 
    					&pageVarKey=`page` 
    					&totalVar=`total` 
    					&includeTVs=`1` 
    					&processTVs=`1`
    					]]
    
    					[[+news-all]]
    					<hr />
    					<ul id="pagination">[[!+page.nav]]</ul>
    
    					[[!getArchives?
    					&parents=`41`
    					&toPlaceholder=`news-all`
    					&tpl=`latest-news`
    					&tplLast=`latest-news-last`
    					&includeTVs=`1` 
    					&processTVs=`1`
    					]]
    					
    
    			</div>
    			<!-- End Ultimas Noticias -->
     
            </div>
            <!-- End Left Column -->
            
            <!-- Start Right Column -->
            <div class="grid-4">
    
    			<h2>Arquivos de [[+arc_year]]</h2>
    			
    			<ul> 
    				[[!Archivist? &parents=`41` &target=`41` &tpl=`testee` &useMonth=`0`]]
    			</ul>
     
            </div>
            <!-- End Right Column -->
    


    Many thanks in advance
      • 16899
      • 284 Posts
      Hi All

      Is this possible or not? There exist any solution for this problem?

      Regards
        • 16899
        • 284 Posts
        Pleaseeeee... i need helpppppppppp!!!!!! :’(
          • 22303 MODX Staff
          • 10,725 Posts
          You are setting the output of both to news-all. I don’t think that is your intention. I would suggest not using the toPlaceholder portion and let the Snippets just return their output.