Limit record listings based on record field in User File

3 posts by 3 authors in: Forums > CMS Builder
Last Post: November 28, 2011   (RSS)

Re: [nmsinc] Limit record listings based on record field in User File

By Jason - November 27, 2011

Hi,

This could be accomplished through a custom plugin. If you're comfortable with plugin creation, you will probably want to use the "list_where" filter for your plugin.

If you'd like us to create this plugin for you, please send an email to consulting@interactivetools.com and we can go over some options.

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: [nmsinc] Limit record listings based on record field in User File

Hi nmsinc,

If you're using the Website Membership plugin, you might be able to get away with something like this simple line of code in the PHP block at the top of your restricted page.

<?php if ($CURRENT_USER['your_field'] == "your_value"): ?>Current user will be able to see this<?php endif ?>

There are lots of tips and tricks about how to implement the membership plugin in my CMSB Cookbook http://www.thecmsbcookbook.com

Hope that helps.

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