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

    Did you deleted this message yourself ?

    Message Content starts here --
    ------------------------------

    I really have some trouble understanding the filter parameter... When I define a filter, I just get a blank output.

    Here is the thing : I have documents which contain a certain number of TV fields (date, place, price...).

    I want to create pages that list those documents according to different criterias. It means I’d want one page listing all travels in the Alsace region, another listing of travels that last a week-end, etc. Those listing would point to a "more" page with all the details about a particular travel.

    An information page about a given travel is not a children of a particular folder, since I can have a travel which lasts a week-end and takes place in Alsace it has to be displayed on both listing and the "more" link has to point toward the same detail page.

    It’s fairly straightforward, I realize that, but I have some trouble making it work...

    "lieu" is the TV for the place where the travel takes place and it can have three values : Alsace||France||International. I have tried the following on the page I want all travels taking place in the Alsace region.

    [!NewsListing? &tpl=`fiche` &filter=`tvlieu,Alsace,1` &truncText=`Voir le détail de la fiche` &emptytext=`Désolé, pas de fiche dans cette catégorie`!]


    The chunk named ’fiche’ has the following code :

    <h3>[+title+]</h3>
    <p class="infos_fiches">»  Le [+tvdate_debut+] | [+tvduree+] | [+tvprix+] € TTC</p>
    <div class="lien_fiche">[+link+]</div>


    It does not output anything, thus I probably have a faulty understanding of the snippet’s logic.

    Could someone enlighten me there ?

    Message Content ends here --
    ----------------------------

    Its undecided http://modxcms.com/forums/index.php/topic,1235.msg15286.html#msg15286
      Zaigham R - MODX Professional | Skype | Email | Twitter

      Digging the interwebs for #MODX gems and bringing it to you. modx.link
      • 18397
      • 3,250 Posts
      Well, to anwser his question, the tv name must actually be called in the template or in the hiddentvs (I think thats what I named it...) parameter. At first glance, thats most likely why its not filtering right.
        • 6726
        • 7,075 Posts
        Yeah well I deleted it just after I posted, because I figured out what Mark just said while re-reading my own post (sometimes formulating a problem helps you solve it...), and felt somewhat stupid about asking tongue

        But now that we’re here, what are hiddentvs ?
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l&#39;outil id
          • 33337
          • 3,975 Posts
          Please avoid removing the post after posting ...instead, use edit facility.
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 6726
            • 7,075 Posts
            Okay I will !
              .: COO - Commerce Guys - Community Driven Innovation :.


              MODx est l&#39;outil id
              • 18397
              • 3,250 Posts
              Hidden tv’s are tv’s that you either want to sort by or filter by that don’t appear in your NewsListing template.