Page 1 of 1

[SOLVED] Banners Modules Help

Posted: Wed Aug 12, 2009 6:08 am
by BenedictPorter
My client wants to use the Banners module on his site and I have installed it and set it up.

He now wants to be able to specify what category of banner appears on each individual page depending on the content.

I don't want to create lots of different page templates with lots of different Banners Module tags in them so I was hoping I could insert a Content block into my template so the client could simply specify a category when they created a page. This doesn't seem to work.

Does anyone have any other ideas on how I could get this functionality?

Re: Banners Modules Help

Posted: Wed Aug 12, 2009 6:58 am
by Jeff
Somewhere in the body:
{capture assign=category}{content block=Category oneline=true}{/capture}


at the bottom (I don't know the module syntax just guessing)
{banners cat=$category}

Re: Banners Modules Help

Posted: Wed Aug 12, 2009 7:29 am
by BenedictPorter
This works great - just what I needed.

Thanks for your help.

Re: Banners Modules Help

Posted: Wed Aug 12, 2009 3:51 pm
by BenedictPorter
As a little extra, is there a way I can call a list of available categories and have these appear in a drop-down list in my content block?

Re: Banners Modules Help

Posted: Wed Aug 12, 2009 4:11 pm
by calguy1000
That'll be coming with CMSMS 1.7.

Re: Banners Modules Help

Posted: Wed Aug 12, 2009 10:28 pm
by BenedictPorter
Thanks Calguy, that's good to know.