Create a plugin to do same as 'hidden' field

By rjbathgate - July 31, 2011

Hello,

I want to have a field operate in a similar manner to the 'hidden' field (but the other way around, i.e. checked = displayed, unchecked = hidden).

Lets call it 'display'.

I can manually add this (display = 1) into the $where for the viewer but thought the cleanest way would be via plugin... (which works like this: if 'display' exists in table, then the 'where display = 1' is added to the rest of the 'where'.

I'm not sure where to start to integrate it as a plugin...

Cheers
Rob

Re: [rjbathgate] Create a plugin to do same as 'hidden' field

By robin - August 1, 2011

Hey Rob,

Plugins get into some really advanced stuff. It will be a lot easer and cleaner to add the 'where' => "display='1'" to your viewers.

If you are really interested in setting up a plugin though, you can check out the free plugins on the user submited page for examples and ideas.

http://www.interactivetools.com/add-ons/?user_submitted=1

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

Re: [rjbathgate] Create a plugin to do same as 'hidden' field

Hi Rob,

Any way you could use (or modify) one of the the Show/Hide plugins on the user submitted plugins page?

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