Is it possible to render the same page differently depending on whether the entry was accessed directly or if it is a summary listing?
I have a weblog set up where the user enters the title, the body, and a summary. I want to make it so that when the user goes to /myblog/ or /myblog/index, they receive a listing of the titles of the posts with the summary. Clicking on the title will send them to /myblog/urltitle and will render the post appropriately.
The problem that I am having is that I would like some of the other content on the page to be different depending on whether it is a page for a single post the page for the listing of all posts. What’s the easiest way to determine if the page is rendering a single entry or multiple entries? I can’t simply use {if total_results == 1} because there could be only one item in the listing when i paginate the results.
I’m sure this is a common way of using templates and would appreciate it if someone could shed some light on the subject.
Thanks
