Is it possible to set the category id in a channel entries tag based on the last segment or by another method so that I don't have to create multiple templates?
I'm trying to get this template to fly.
{embed="_layouts/index"}
{exp:stash:append name="listings"}
<div class="widget">
<div class="whead"><h6>Listings</h6></div>
<div class="shownpars">
<table cellpadding="0" cellspacing="0" border="0" class="dTable">
<thead>
<tr>
<th>Name<span class="sorting" style="display: block;"></span></th>
<th>Location</th>
<th>Phone</th>
<th>Email</th>
</tr>
</thead>
<tbody>
{exp:channel:entries channel="members" category="{category_id}" status="Open" limit="100" disable="category_fields|member_data|pagination|trackbacks" dynamic="no"}
<tr>
<td>{title}</td>
<td>{member_location}</td>
<td>{member_phone}</td>
<td class="center">{member_email}</td>
</tr>
{/exp:channel:entries}
</tbody>
</table>
</div>
</div>
{/exp:stash:append}
{exp:stash:set name="content"}
{exp:stash:get name="listings"}
{/exp:stash:set}