Page 1 of 1

CGBlog - Browse Category template

Posted: Tue Mar 29, 2022 11:04 am
by johnflan
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}

Re: CGBlog - Browse Category template [done]

Posted: Mon Apr 04, 2022 10:39 pm
by johnflan
Thanks to all for looking at the problem. I realised it might be better to think about it differently. So eventually added the four headline gigs into the page so they couldn't be affected by the function of the gig list.
It works!
https://www.rvjazzfestival.co.uk/

Re: CGBlog - Browse Category template

Posted: Mon Aug 15, 2022 9:28 am
by andrewvideouk
Cool site. Love the style. Well done.