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

    I've got Archivist working successfully for a News area, but theres also a members only download area that we are doing.

    I duplicated the call, and created the relevant pages.

    Archive Page

    [[!getPage?
      &element=`getArchives`
      &elementClass=`modSnippet`
      &tpl=`NewsList`
      &hideContainers=`1`
      &pageVarKey=`page`
      &parents=`56`
      &includeTVs=`1`
      &toPlaceholder=`archives1`
      &limit=`10`
      &cache=`0`
    &resources=`-57`
    &includeContent=`1`
    ]]
     
    <h3>[[+arc_month_name]] [[+arc_year]] Archives</h3>
    
    
     
    [[+archives1]]
     
    [[!+page.nav:notempty=`
    <div class="paging"> 
    <ul class="pageList"> 
      [[!+page.nav]] 
    </ul> 
    </div>
    `]]


    Archive List

    <ul>
    [[!Archivist? &target=`57` &parents=`56` &tpl=`DownloadsArchiveTpl`]]
    </ul>



    DownloadsArchiveTpl

    <li>
        <a href="[[+url]]" title="[[+date]]">[[+date]]</a> ([[+count]])
    </li>


    So, my parent for the listing is 56, and the archive page itself is 57.

    The count works perfectly, months date etc, but the actual results go through to my news page - which has the same code as above but with a parent of 4 and target of 38.

    In theory it should work as its called on a different page totally.

    Lastly, if i add any of the resources underneath 56 to a resource group so you need to log in to see them, the archive doesnt list or count them at all.

    Any help would be appreciated

    Thanks

    Tyr

    Edit: So, ive checked the actual call of the page - the download-archive - this lists the archives correctly - but when i click on the downloads archive links frmo Archivist its still redirecting to the page thats solely archive2012/01 instead of downloads-archive2012/01 [ed. note: Tyreal2012 last edited this post 14 years, 8 months ago.]