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

    I have setup a multilingual site (russian and english) - the contexts switch with [[BabelLinks]] (Babel installed)

    Here is the problem:

    I created a news archive using [[Archivist]] following this tutorial:

    http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution and changing some stuff for my needs.

    Clicking the month link in archivist f.e "July 2010" - shows the news list for July month. But when I click "En" for changing to english context it shows me the list of archive news instead of July month. What I am trying to say is that:

    Instead of showing http://46.162.3.130/assistance/en/archive/2011/07 I get http://46.162.3.130/assistance/en/archive/

    Here is the Archivist’s call in my russian template:

    [[!Archivist? &tpl=`archivistTplru` &target=`43` &parents=`5,7,9`]]

    where `43`- id of news archive container `5,7,9` - news containers . In the english template this id’s change respectively.

    Content of News Archive page: (has alias archive)

    [[!getPage? &showHidden=`1` &element=`getArchives` &elementClass=`modSnippet` &tpl=`articleTpl` &hideContainers=`1` &pageVarKey=`page` &parents=`5,7,9` &includeTVs=`1` &toPlaceholder=`archives` &limit=`10` &cache=`0` ]]
    [[!+arc_month_name:replace=`January==Январь`:replace=`February==Февраль`:replace=`March==Март`:replace=`April==Апрель`:replace=`May==Май`:replace=`June==Июнь`:replace=`July==Июль`:replace=`August==Август`:replace=`September==Сентябрь`:replace=`October==Октябрь`:replace=`November==Ноябрь:replace=`December==Декабрь`]] [[+arc_year]]

    [[!+archives]] [[!+page.nav:notempty=`[[!+page.nav]]`]]

    Can anyone help me with this? I really need to get it working untill tomorrow. Thanks for any reply.
      • 34710
      • 7 Posts
      Your silence is killing me guys, I really need some help please...
        • 28000 ☆ A M B ☆
        • 397 Posts
        I just tested your problem on one of my multilanguage sites and I am also getting the same thing. Archivist does not know which month and just shows a list of entries after you switch languages. Anyone have a solution for this?
          Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
          • 12236
          • 48 Posts
          Digital Butter - MODX Premiere Partners Reply #4, 15 years, 3 months ago
          The problem is that on your archives pages, the Archivist plugin forwards you to the Archives resource page without the extra 2011/07, since that itself isn’t a real resource and fires the onPageNotFound event. You may want to try appending [[+arc_year]] and [[+arc_month]] to the babel link, and wrap it inside a statement to make sure it is not empty.

          E.g. append something like this to the end of your link in the babel link tpl.

          [[!+arc_year:isnot=``:then=`[[!+arc_year]]/[[!+arc_month]]`:else=``]]
            • 34710
            • 7 Posts
            Ok I will try it today and reply if any success.