Wildcard Params... Example: Simple multiple CGCalendars

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
JeremyBASS

Wildcard Params... Example: Simple multiple CGCalendars

Post 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...
Last edited by JeremyBASS on Thu Jul 02, 2009 3:29 am, edited 1 time in total.
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am

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

Post by Simon66 »

That's great, I'm saving this one for later.

Simon66
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.

This must be Thursday. I never could get the hang of Thursdays.

Douglas Adams - The only sane person in the asylum.
Post Reply

Return to “Tips and Tricks”