CGBlog - Browse Category template Topic is solved

A place to make for-pay "CMS made simple" job offerings
Post Reply
johnflan
Forum Members
Forum Members
Posts: 31
Joined: Thu Aug 23, 2007 5:20 pm

CGBlog - Browse Category template

Post 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}
johnflan
Forum Members
Forum Members
Posts: 31
Joined: Thu Aug 23, 2007 5:20 pm

Re: CGBlog - Browse Category template [done]

Post 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/
andrewvideouk
Forum Members
Forum Members
Posts: 155
Joined: Thu Aug 20, 2020 10:49 pm

Re: CGBlog - Browse Category template

Post by andrewvideouk »

Cool site. Love the style. Well done.
Post Reply

Return to “Help Wanted (commercial)”