Limiting options in a section editor pull down list field

6 posts by 2 authors in: Forums > CMS Builder
Last Post: April 22, 2011   (RSS)

Re: [gkornbluth] Limiting options in a section editor pull down list field

By robin - April 21, 2011

Hey Jerry,

I think you'll need a MySQL query for the list field that looks something like this:
SELECT num, fullname
FROM `<?php echo $TABLE_PREFIX ?>accounts`
WHERE videos_available='1'

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] Limiting options in a section editor pull down list field

By gkornbluth - April 21, 2011 - edited: April 21, 2011

Thanks Robin,

I'll give it a try.
Just one question.

Since I'm trying to limit the choices in the videos available editor, where do I insert the query?

The videos_available.ini.php?

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Limiting options in a section editor pull down list field

By robin - April 21, 2011

Hey Jerry,

That code should go in the list options box in the field editor after you choose "Get options from MySQL query (advanced).

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] Limiting options in a section editor pull down list field

Ah ha...

Thanks,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [robin] Limiting options in a section editor pull down list field

Robin.

Thanks.

Things are so easy when you know what you're doing.

Works like a charm,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php