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

    I am using the Newslisting snippet (newest version), and i want to make a nice standard blog archive like wordpress does,
    for example

    Archive:
    -January
    -february
    -march
    -april

    and so on.

    but all i get is:

    Archiv:

    * August 2006
    o Wiki (03.08.2006)
    o Forum (02.08.2006)
    * July 2006
    o Tierarztliste (04.07.2006)
    o Impressum (04.07.2006)
    o Züchterliste (03.07.2006)
    * and so on....

    how can i make only the months show up and not the entries?

    sorry, i am fiddeling with modx for 4 weeks now but i still can’t figure out.

    thanks in advance, greetings!
      • 22815
      • 1,097 Posts
      Firstly: the latest version of Newslisting is Ditto. I’ve moved your post into the Ditto / Newslisting forum.

      Secondly, the archive function basically lists documents grouped by month.
      What you seem to want to have instead is a list of links to past months, each of which will list documents from that month.

      I’m sure there’s a way of doing this, but I don’t personally know what it is. Hopefully someone else can help.
        No, I don't know what OpenGeek's saying half the time either.
        MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
        Forum: Where to post threads about add-ons | Forum Rules
        Like MODx? donate (and/or share your resources)
        Like me? See my Amazon wishlist
        MODx "Most Promising CMS" - so appropriate!
        • 18397
        • 3,250 Posts
        This is possible but would require quite a bit of programming on my part. Would anyone else like this feature as well?
          • 6173
          • 34 Posts
          This feature would be really nice to have. I have seen a lot of blogs using this way of archive handling and it would be nice to have in this excelent cms too.
            • 17802
            • 190 Posts
            I think some kind of javascript/dom scripting solution would be nice. Where at first you only see a list of months (which are links) and if you click a month the titles would appear underneath. I might try and create something like that later... I think this kind of solution doesn’t require many modifications to the original snippet, right? Because the post titles already have classes assigned to them, that could be targets for the javascript (I hope what I’m saying makes sense, my english is a bit rusty today... undecided).
              Thanks for MODx - I love it!
              • 7923
              • 4,213 Posts
              Quote from: Maaike at Aug 04, 2006, 05:38 AM

              I think this kind of solution doesn’t require many modifications to the original snippet, right?
              The month text in archive are not templateable, so I think it’s not possible currently without hacking the snippet code. One way you could do it currently is make the archive ul ul hidden by default and in the archive text have link what has onclick event that makes the archive ul ul visible again..

              But what would help this in future Ditto versions would be that the archive section would be better templateable.


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 12601
                • 9 Posts
                Quote from: Mark at Aug 03, 2006, 08:56 PM

                This is possible but would require quite a bit of programming on my part. Would anyone else like this feature as well?

                Can I add my interest in having this programmed in as a feature? Not only months, but years too? I have a Website that will need to archive blog entries (actually news items and conference items) in years. Previously the author created long HTML pages!

                Best,

                Iain.
                  • 25762
                  • 67 Posts
                  Mark: yes, please.
                    • 18397
                    • 3,250 Posts
                    But what would help this in future Ditto versions would be that the archive section would be better templateable.

                    Already done for the next release smiley.

                    @Everyone:

                    Should this new archive format replace the current one or be a swappable option?
                      • 15987
                      • 786 Posts
                      If it is templatable I would just include a default template if none is specified and then let users override it with their own template.