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

    I am trying to set up archives for my blog posts as per the following link:

    http://www.bitego.com/weblog/2014/01/22/create-a-stylish-news-archive-with-articles-and-archivist.html#footercontact


    I am not using 'Articles' instead my own containers which it states is fine to do. My Archive page has this call:

    <div class="newsarchivecontainer">
        [[!Archivist?
            &parents=`8`
            &target=`18`
            &limit=`0`
            &groupByYear=`1`
            &tpl=`ArchivistRowTpl`
            &yearGroupTpl=`ArchivistYearGroupTpl`
        ]]
    </div>


    and my Archivist landing page (ID18) has this call:

    <div class="newscontainer">
        [[!getPage?
            &element=`getArchives`
            &parents=`8`
            &showHidden=`1`
            &pageVarKey=`page`
            &toPlaceholder=`archives`
            &cache=`0`
        ]] 
        <h2>News for the period [[+arc_month_name]] [[+arc_year]]</h2>
        [[+archives]]
    </div>
    <ul class="newspaging">
        [[!+page.nav]]
    </ul>


    I have also set the two chunks `ArchivistYearGroupTpl` and `ArchivistRowTpl` as per the tutorial, and the CSS. My Archive page shows the date with folder and states 3 articles in Feb (correct as ID8 has 3 blog entries in). When I click the folder though it takes me to this page:

    http://www.pawsforwildlife.co.uk/archive-landing-page/2016/02


    I can't seem to find where I am going wrong?

    This question has been answered by distant_smile. See the first response.

      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      I can output the archive folders with my above code. The issue comes when a folder is clicked, rather than taking me to a page with the links(pages) in that folder I just get a blank page. It must be something to do with my getPage call or my tpl code as the Archivist call is working?
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
      • discuss.answer
        • 7527
        • 437 Posts
        Ok, so I re did the whole snippet call and landing page and it seems to work!
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk