Multiple Selections

8 posts by 2 authors in: Forums > CMS Builder
Last Post: June 30, 2009   (RSS)

By Moonworks - June 24, 2009

Is there a way to select multiple categories to place a post into?

For example, I'm running residential courses, and would like to have a page with just the film maker courses, another with just the writer courses, etc but also a page listing all the courses.

Is there a way to do this without having to copy/paste?
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] Multiple Selections

By ross - June 25, 2009

Hi there.

Thanks for posting!

You should be able to get that going. There is actually a multi select option when creating a list field. Make sure you check that one of.

Now, there is a little bit of work needed on your list pages though. The ones that you use to display all the listings from one category. You'll need to us a LIKE command instead of the =.

Let me know if that makes sense so far and we'll go from there. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Multiple Selections

By Moonworks - June 25, 2009

I have no idea what you mean on the LIKE and = commands, but that is more to do with me not being a coder.

The way I have it set up right now, is that for each section, I have set up a seperate section, so writers courses, film makers courses, actors courses, etc.

It would, however, be much easier if I could have a pull-down menu that I select which type of course it is, and then when I have just the writers courses listed, I guess I would use LIKE and =.
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] Multiple Selections

By ross - June 26, 2009

Hi there.

I think I get it now :).

What you want to do is take your three sections and turn it into just one section with a drop down that lets you set what kind of course it is.

Almost like a category drop down menu. You can do that :).

If you set up the section for me, and then attach a copy of your default list viewer for that section, I can help with the "LIKE" code.

Let me know what you think :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Multiple Selections

By Moonworks - June 26, 2009

How do I export that file for you?
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [ross] Multiple Selections

By Moonworks - June 26, 2009

I think this is the file you need [:)]

Thanks for the help
High quality residential training for writers, actors & Film Making - Click Here for further information
Attachments:

courses-ini.php 4K

Re: [Moonworks] Multiple Selections

By ross - June 30, 2009

Hi there.

Thanks for getting me that file :).

Here's a viewer you can use at the top of each "category" page you setup:

list($coursesRecords, $coursesMetaData) = getRecords(array(
'tableName' => 'courses',
'where' => "course LIKE '%\tWriters\t%'",
));


Just change the word "Writers" to the appropriate "category". Make sure to only change that part of the line. Everything else there is really important.

Give it a shot and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/