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!
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.
This is possible but would require quite a bit of programming on my part. Would anyone else like this feature as well?
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.
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...

).
Thanks for MODx - I love it!
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."
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.