We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    Here is my Modx environment :

    document #19:
    [!TvTagCloud? &parent=`15` &landing=`19` &tvTags=`absMcle`!]
    
    [*listeLivresParDate*]


    with the TV listeLivresParDate defined as:
    @EVAL if (isset($_GET['tags'])) '{{listeLivresParDate}}';


    and the chunk listeLivresParDate defined as a ditto call:
    [!Ditto? &language=`francais-utf8` &tpl=`absItemListTpl` &parents=`15` &paginate=`1` &display=`10` &extenders=`summary,tagging` &tagData=`absMcle` &tagDelimiter=`, ` &sortBy=`absDatePub` &truncText=`Lire la suite...`!]
    
    Affichage des notes de lecture [+start+] à [+stop+] | Page [+currentPage+] de [+totalPages+]
    [+previous+] [+pages+] [+next+]


    When the url don’t contain &tags=something I get only the list of tags on the document #19. Which is the correct behaviour.
    But after clicking on a tag, when the url is ....index.php?id=19&tags=something, I don’t get the page with the list of documents related to the tag >:(

    Is somebody, could help me to understand how I could manage @EVAL with the display of the chunk. What is the correct way to build this kind of solution ?
      • 22303 MODX Staff
      • 10,725 Posts
      You would have to make sure that the page is not cacheable.
        • 5811
        • 1,717 Posts
        Yes, document #19 is not cacheable, but I don’t get the results for a specific tag huh
          • 5811
          • 1,717 Posts
          I forgot the return statement tongue
          The TV should be
          @EVAL if (isset($_GET[’tags’])) return ’{{listeLivresParDate}}’;
          rather than
          @EVAL if (isset($_GET[’tags’])) ’{{listeLivresParDate}}’;
          Now It’s ok.