For the site I'm working on, I have used a CCK "Date" field for news articles to show the date they were submitted, since it may differ from the node's creation date. In addition, I have created a view that sorts those news articles by the date they have (in descending order) in the "Date Submitted" field. Finally, I have added an argument to that view that will only show articles with the specified year in the "Date Submitted" field, if that year is present in the URL - this way, "/news" would show all news articles, but "/news/2007" would only show articles with the year 2007 in that field.

My questions are:

  1. If the year, month and/or day are present in the URL, could they be displayed for the view's title? More or less, I want it to work like this (using sample dates here):
    • "/news" will have the title "News". This is already correct for this URL since no part of the date is present, but only shows that even when the date is present (which is true for the following three cases).
    • "/news/2007" would have the title "News for 2007".
    • "/news/2007/10" would have the title "News for October 2007".
    • "/news/2007/10/19" would have the title "News for October 19, 2007".
  2. If the above is possible, could something similar be done for the breadcrumb? Here's how they work, and how I want them to work (again, using sample dates - in all cases, the links within the breadcrumbs are working properly):
    • "/news" has the breadcrumb "News". This is already correct for this URL.
    • "/news/2007" has the breadcrumb "News » News", but should read "News » 2007".
    • "/news/2007/10" has the breadcrumb "News » News » News", but should read "News » 2007 » October".
    • "/news/2007/10/19" has the breadcrumb "News » News » News » News", but should read "News » 2007 » October » 19".

Since the format of the dates would differ between the title and breadcrumb, I have no problem with modifying a template file, in addition to modifying the view, to accomplish this.

Thank you for any help you can provide.

Comments

Wolfey’s picture

(Bumping topic...)

Apologies for being impatient, but I'm wondering whether or not this is possible.