Hi,
I'm building a news site which is updated daily. There are 8 root categories and no subcategories. The 10 most recent news stories (links) in each category shall appear on a front page. Viewers may click on "More Stories..." in each category to get the older news.
I'm considering the best way to do this is by creating a new template for each category, for example, technology.html, which will display the 10 most recent links, and when viewers click on "More Stories..." it will take them to the standard subdirectory /Technology/ created by the category.html template (I don't mind if the 10 most recent links appear here as well). This way I'll be able to build the front page by using SSI to include the top 10 stories created by the 8 new templates - which shall contain nothing but a tag calling the top 10 links in that category.
If anyone could show me the best way to do this, much obliged.
ruby
I'm building a news site which is updated daily. There are 8 root categories and no subcategories. The 10 most recent news stories (links) in each category shall appear on a front page. Viewers may click on "More Stories..." in each category to get the older news.
I'm considering the best way to do this is by creating a new template for each category, for example, technology.html, which will display the 10 most recent links, and when viewers click on "More Stories..." it will take them to the standard subdirectory /Technology/ created by the category.html template (I don't mind if the 10 most recent links appear here as well). This way I'll be able to build the front page by using SSI to include the top 10 stories created by the 8 new templates - which shall contain nothing but a tag calling the top 10 links in that category.
If anyone could show me the best way to do this, much obliged.
ruby