We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33175
    • 711 Posts
    Hello

    I have like a blog on my website. Currently, I have one directory "Actualités". I create all news in this, at the root.
    When I will have many news, it will not easy to retrieve one. So I would like arrange all news to not display all each time. I let to you imagine with 300 news.

    I have no solutin to do it properly.
    I thought to create each news in sub directory like this :
    Actualités // blog folder
    |_ 2006 // year
    |_ 03 // month
    |_ 16 // day
    |_ A new // news

    When I display a new, URL is like http://www.buromatique.fr/actualites/2006/03/16/mandriva-licencie-son-cofondateur.html
    But I can’t display properly my list of news with NewsListing. Number (2006 for year, 03 for month...) like News. You can see my problem here.

    Does someone know a solution to filter this directory in NewsListing ?
    Have you other solution ?

    Thanks for your help
      Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
      • 33175
      • 711 Posts
      Does nobody have ideas? :’(
        Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
        • 33337
        • 3,975 Posts
        NewsListing 6.3.x + has filter function, and can be used as
        [!NewsListing? &filter=`value`!]
        

        Please consult this thread for more information.

        Thanks.

        zi
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 33175
          • 711 Posts
          Thanks but I not found a real solution. I have avoid the problem to set directory "no searchable".
          This is my call of the snippet :
          [!NewsListing? &multilevel=1 &levelLimit=`4` &showarch=`1` &archivetext=`Actualités précédentes` &summarize=`5` &startID=`2` &tpl=`ActualiteExtrait` &truncText=`Lire la suite...` &sortby=`pub_date &pubOnly` &filter=`privateweb,1,2|searchable,0,2` &dateformat=`%d/%m/%Y %Hh%M` !] 
            Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
            • 33337
            • 3,975 Posts
            Well, its a real solution i think....

            anyways, your problem seems to be solved.. smiley

            regards,

            zi
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link