List Options Advanced Query

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 12, 2012   (RSS)

Re: [concrete] List Options Advanced Query

By Jason - April 11, 2012

Hi,

For both of these, you can use the $CURRENT_USER variable.

I'm assuming you need to do this for the query of a list field?

If, for example, your check box was called "display", you could do something like this:

<?php if ($CURRENT_USER['display']): ?>

select num, title from cms_table where field = '<?php echo $CURRENT_USER['num'];?>

<?php else: ?>

select num, title from cms_table

<?php endif ?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] List Options Advanced Query

By concrete - April 12, 2012

Thanks Jason