CGBlog - Browse Category template
Posted: Tue Mar 29, 2022 11:04 am
I'm using the CGBlog as a gig listing. Works well. There are 2 different types of gigs - Festival (ticketed) and Fringe (free pub gigs). They are shown separately on a page - great. For the Fringe section there's a Browse Category part which lists the pubs and this can sort out the gigs by the pubs - great! But, on clicking on a pub venue it also affects the Festival listing above - arrh!
Here's a link to a test page:
https://www.rvjazzfestival.co.uk/copy-o ... nts-2.html
Here's the code I'm using in the Browse Category Template. You can see I've eliminated the Festival button from showing in the sort list.
{function cgblog_browsecat}
<div class="col-sm-12 portfolioFilter">
{foreach $categories as $cid => $rec}
{if $rec.name == 'Festival' }{else}
<a href="#" title="{$rec.name}" data-filter=".{$rec.name}">{$rec.name|replace:'_':' '}</a>
{/if}
{/foreach}
<a href="#" data-filter="*" class="current">All</a>
</div>
{/function}
{cgblog_browsecat}
Here's a link to a test page:
https://www.rvjazzfestival.co.uk/copy-o ... nts-2.html
Here's the code I'm using in the Browse Category Template. You can see I've eliminated the Festival button from showing in the sort list.
{function cgblog_browsecat}
<div class="col-sm-12 portfolioFilter">
{foreach $categories as $cid => $rec}
{if $rec.name == 'Festival' }{else}
<a href="#" title="{$rec.name}" data-filter=".{$rec.name}">{$rec.name|replace:'_':' '}</a>
{/if}
{/foreach}
<a href="#" data-filter="*" class="current">All</a>
</div>
{/function}
{cgblog_browsecat}