We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38547
    • 98 Posts
    I am using getArchives inside of getpage which produced a menu to select resources by Year.
    This was working perfect but I have just found out that whatever year link I select it just outputs all the results in date order, I know I updated getResources in the package manager the other day and can only presume that must have upset something but I dont for the life of me know what.
    Can anyone please give me any clues on how to fix it I am using Rev 2.2.6 and have cleared the site cache and FURL's are turned on

    The call that creates the Menu by Year links is this
    [[!ArchivistGrouper? &parents=`28` &mode=`year` &depth=`3` &groupTpl=`GroupByYear`]] 


    The &groupByYear template contains this
    <ul>
        <li><a href="[[+url]]">[[+year]]</a>
       
        </li>
    </ul>

    and the links that outputs look like this
    http://sudburymcc.co.uk/archive-events-report-pages.html2005

    Resource which outputs results has the following
     [[!getPage?
            &element=`getArchives`
            &tpl=`newsTpl`
            &parents=`28`
            &showHidden=`1`
            &limit=`5`
            &pageVarKey=`page`
            &includeTVs=`1`
            &processTVs=`1`
            &toPlaceholder=`archives`
            &cache=`0`
            &hideContainers=`1`
       ]]
        <h3>All results [[+arc_month_name]] [[+arc_year]]</h3>
        [[+archives]]
    
    [[$pagePagination]]



    Thanks

    Ian
    [ed. note: ianman last edited this post 13 years, 7 months ago.]
      • 38547
      • 98 Posts
      I had to turn off furls it was this that was causing my issue, for info my call to create the menu now looks like this
      [[!ArchivistGrouper? &useFurls=`0` &target=`73`  &parents=`28` &mode=`year` &depth=`3` &groupTpl=`GroupByYear`]] 

      [ed. note: ianman last edited this post 13 years, 7 months ago.]