05 Aug 2010
22 Jan 2011
Link to this post
I'd like to suggest a feature for all content items that have a SingleItemView and ListView i.e. News / Blogs etc.
At the moment you have a listing of news articles. When you click on one of those news articles it shows just the selected news article, but uses the same .aspx page. i.e. the template doesnt change at all. On my news home page I would like to show the list of news, plus some other widgets in a sidebar I have. However, when I click on a news article I would like to display a completely different set of widgets in the side bar.
This would allow us to display much more relevant information once a user has gone as far as to read an article, for example you might display related stories as a widget, or you might display a widget that shows tweets related to this article. These are just examples, but the point is it will give the content editors full control over the content rather than them just having a list of news, and a news article.
The same applies for almost any module that has a list/single view i.e. products / blogs / events / jobs.
I have acheived this in the past by creating a seperate CMS page, and then creating a rewrite rule that looks for /news/some-news-article.aspx but this is a pain because you then have to hard code rewrite rules into the web.config which prevents the end-user being able to change the main news page url etc. You could achieve the same result without creating a rewrite rule, but then you ended up with a nasty url that included the page you were displaying the single news article on, for example:
/news/news-article/my-news-article1.aspx, whereas what we really want it /news/my-news-article1.aspx (~you may want the date or category to appear in the url of course).
It appears that the same has been done in V4, i.e. the news target page is included in the URL.
I envisage two ways of acheiving this:
1) Allow the url for news target page i.e. the selected page to show the article to be created without the target page forming part of the url i.e. news/my-news-article.aspx not news/<targetpage>/my-news-article.aspx
2) Or, allow for both view i.e. single and list, to be designed on the same page and allow widgets to be dragged onto those views.
I really think this will be a huge benefit for content editors, for search engines, and for us the developers who have put a lot of thought into the url structure of our site.
Afterall, you dont find many successful sites out there that reference:
If you do, I'll eat my words!
Hope you consider it.