Hello,
I’ve read, read, and read again; archives in here, tutorials, etc and I am still a bit stumped at the best way to go about creating a very simple news area.
I have a website that has a news page that will display all the news for that year (i may want to break it down by month if the news is more frequent) on the left column and on the right column will be a navigation that is just a list of years that will link to that particular year’s news. (eg. 2007, 2006, 2005, etc)
First question:
I currently have the left side setup as follows
[[Ditto? &startID=`4` &summarize=`10` &tpl=`news_format` &dateFormat=`%d-%b-%y` &dateSource=`pub_date` &sortBy=`pub_date`]]
This works ok for now, it is a big list of news articles on a page. Anything wrong with this code block & can it be improved at all? Is it formatted correctly for sorting? Also how should I be setting up the news articles, should I just be putting them all within the news container or should I also have a container for each year?
I tried to use wayfinder to set up the side nav to filter by the year but it doesn’t seem to work correctly and I am finding good documentation very hard to come by. I used the example at
http://ditto.modxcms.com/tutorials/wordpress-style-archives.html but Instead of just showing the years, it also has a nav item for the month and a nav item for the article with the title and none go to the correct pages.
I would just like when you click on 2008 it populates the news container page with the 2008 articles and so forth for each year.
Is there just a simple concrete example online or an easy to understand guide of how to sort by the year? I’m finding the lack of docs and good online examples a bit frustrating and this ends up taking hours instead of minutes like it should.
Second Question:
Regarding breadcrumbs, how will they work in conjunction with ditto and wayfinder, will they be able to show for example Home > News > 2008 News if you select the "2008 News" list item?
Thanks!