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?
[SOLVED] Banners Modules Help
-
- Forum Members
- Posts: 36
- Joined: Fri Mar 06, 2009 5:33 pm
[SOLVED] Banners Modules Help
Last edited by BenedictPorter on Wed Aug 12, 2009 10:28 pm, edited 1 time in total.
Re: Banners Modules Help
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}
{capture assign=category}{content block=Category oneline=true}{/capture}
at the bottom (I don't know the module syntax just guessing)
{banners cat=$category}
-
- Forum Members
- Posts: 36
- Joined: Fri Mar 06, 2009 5:33 pm
Re: Banners Modules Help
This works great - just what I needed.
Thanks for your help.
Thanks for your help.
-
- Forum Members
- Posts: 36
- Joined: Fri Mar 06, 2009 5:33 pm
Re: Banners Modules Help
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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Banners Modules Help
That'll be coming with CMSMS 1.7.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Forum Members
- Posts: 36
- Joined: Fri Mar 06, 2009 5:33 pm
Re: Banners Modules Help
Thanks Calguy, that's good to know.