-
- 48 Posts
Has anyone set up a blog archive using ModX? What I want is to auto-create a list of links to each month that I have blog entries for, and an ablity to display just the entries for the appropriate month (e.g. using Ditto). How did you do it?
One more question related to the above - can I have the month and date embedded in the file path of the alias of each entry - e.g. www.mysite.com/2006/08/11 being today’s entry, whereas mysite.com/2006/08 might show you all pages for this month. Any ideas on how I might do it? I think its a pretty standard blogging feature.
Cheers
John
I don’t think that’s easily doable unless you want a lot of manual work and to use friendly alias paths. You could theoretically hack one of the front end publishing snippets to create the appropriate folder structure automatically I suppose though.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 186 Posts
Mmmm. Your question leads me to the assumption that the blog-functionality is the main if not the only way you present your content?
If so, you could provide params for ordering/displaying based on the "last edited" field of the MODx database and if 2006/08 (for instance) is requested as an url, you’ll get a 404. If you could catch this and redirect it to something a snippet provides, you may come along.
Interesting question, though, and I’m not the right one to provide an answer. Just my 0.01.
-
- 3,250 Posts
You can manually create the month pages in the archive and use a Ditto filter or custom where statement to only show that months dates.