I have several Listing channels that all use the same templates:
E.g.
Templates:
- /templates/view/overview.html
- /templates/view/detail.html
Channels
- News
- Research Updates
- Upcoming Events
How can I only list the entries for each channel at their respective URL without having to duplicate the templates?
E.g.
"http://mysite.com/news" should only list the the latest 20 news stories with links to the detail page.
{% for entry in craft.entries.section('news', 'research', 'events').limit(20).find() %}
<div class="col-sm-6">
<h2 class="Heading"><a href="{{ entry.url }}" title="{{ entry.title }}">{{ entry.title }}</a></h2>
<p class="Date">{{entry.postDate|date('M j, Y')}}</p>
<p>{{ excerpt|length > 250 ? excerpt|slice(0, 200) ~ '...' : excerpt }}</p>
<p><a href="{{ entry.url }}" title="{{ entry.title }}" class="ReadMore">Read More</a></p>
</div>
{% endfor %}