Page 1 of 1

Wildcard Params... Example: Simple multiple CGCalendars

Posted: Wed Jul 01, 2009 6:20 pm
by JeremyBASS
Hello this is a simple trick using the MySQL wildcard... There are a few places you can do this trick but here is a working way to do it... So let us say that you wish to have a few calendars on the same page.. not a problem just do what the help states and you should end up with tags like...

{cms_module module="CGCalendar" action="default" display="calendar" category="CHERC" inline=1}

{cms_module module="CGCalendar" action="default" display="calendar" category="FB"  inline=1}


Now... I what to have more categories and have them spilt out between the calendars... In my case I had 35 cats in 3 calendars.. so I used a strict naming system..

category ex:

CHERC
CHERC-AHA
FB
FB-Birth

This way all I had to do was make the tags like this...

{cms_module module="CGCalendar" action="default" display="calendar" category="CHERC%" inline=1}

{cms_module module="CGCalendar" action="default" display="calendar" category="FB%"  inline=1}


Now where category="CHERC%" I get only CHERC and CHERC-AHA... so the same for the FB category... simple trick and yes you can user this wildcard trick in other places, thou I'm not going to list them out yet... also you can try this...
%CHERC% to pull it from the middle in some places.

Hope this helps…

Cheers
jeremyBass

Here is the proof page...

Re: Wildcard Params... Example: Simple multiple CGCalendars

Posted: Sun Jul 05, 2009 1:13 pm
by Simon66
That's great, I'm saving this one for later.

Simon66