Hi I've tried looking around for xslt posts that match the same site structure and archive page needs for my site but didn't find any, at least not that I was aware of as my xslt kung-fu is not the greatest. I have a site with 4 different news categories, and for each category's main page at the bottom I need an archive listing.
The structure of the news articles is there is a category page such as
domain.com/news-catogory1.aspx
And the actual news articles are children of that category page such as
On the news-category1.aspx page, I will list all the news articles for the current month, then below this I will have a list that looks like this, where each bulleted item is a link, and when you click on the link it takes you to a page that lists all the news-articles's with a createDate for that Year-Month. Where the link for 2008: March would be
domain.com/news-category1/2008/march.aspx
On the year-month's archive page, the links to the articles for that month would point to the original links such as
domain.com/news-category1/news-article2.aspx
and would not have the articles link structure be different when on the archive page.
Mortgage News from 2008
* 2008: March
* 2008: April
* 2008: May
* 2008: June
* 2008: July
* 2008: August
* 2008: September
* 2008: October
* 2008: November
* 2008: December
Mortgage News from 2009
* 2009: January
* 2009: February
I am unsure also of when/how to create the archive page, should I just write a .net macro that every time a user goes to the news-category1.aspx page, it checks the current month and year, and sees if there is an archive page for that year, and if not makes /news-category1/[YYYY].aspx, and then checks if there is an archive page for this month, and if not creates a /news-category1/[YYYY]/[Month].aspx page? I should note that in the bulleted archive list on the main news-category page that the current month shouldn't be listed under the archive since those pages are displayed on the main news category page anyways.
Basically any tips on how I can make an xslt that displays that kind of monthly archive list for this site structure, and/or how to have the archive pages generated when a new month starts would be very helpful. I'm still wet behind the ears when it comes to xslt and archives, thanks for your time.
What about create Archive.aspx page with QueryString parameters like year and month which is passed to macro (or usercontrol) and then add rules to urlRewriting engine?
Month/Year archive question
Hi I've tried looking around for xslt posts that match the same site structure and archive page needs for my site but didn't find any, at least not that I was aware of as my xslt kung-fu is not the greatest. I have a site with 4 different news categories, and for each category's main page at the bottom I need an archive listing.
The structure of the news articles is there is a category page such as
domain.com/news-catogory1.aspx
And the actual news articles are children of that category page such as
domain.com/news-category1/news-article1.aspx
domain.com/news-category1/news-article2.aspx
On the news-category1.aspx page, I will list all the news articles for the current month, then below this I will have a list that looks like this, where each bulleted item is a link, and when you click on the link it takes you to a page that lists all the news-articles's with a createDate for that Year-Month. Where the link for 2008: March would be
domain.com/news-category1/2008/march.aspx
On the year-month's archive page, the links to the articles for that month would point to the original links such as
domain.com/news-category1/news-article2.aspx
and would not have the articles link structure be different when on the archive page.
Mortgage News from 2008
* 2008: March
* 2008: April
* 2008: May
* 2008: June
* 2008: July
* 2008: August
* 2008: September
* 2008: October
* 2008: November
* 2008: December
Mortgage News from 2009
* 2009: January
* 2009: February
I am unsure also of when/how to create the archive page, should I just write a .net macro that every time a user goes to the news-category1.aspx page, it checks the current month and year, and sees if there is an archive page for that year, and if not makes /news-category1/[YYYY].aspx, and then checks if there is an archive page for this month, and if not creates a /news-category1/[YYYY]/[Month].aspx page? I should note that in the bulleted archive list on the main news-category page that the current month shouldn't be listed under the archive since those pages are displayed on the main news category page anyways.
Basically any tips on how I can make an xslt that displays that kind of monthly archive list for this site structure, and/or how to have the archive pages generated when a new month starts would be very helpful. I'm still wet behind the ears when it comes to xslt and archives, thanks for your time.
What about create Archive.aspx page with QueryString parameters like year and month which is passed to macro (or usercontrol) and then add rules to urlRewriting engine?
Petr
Thanks for the idea, I wasn't aware of the urlRewriting engine and will read up on it.
is working on a reply...