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 gkornbluth - August 29, 2011

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

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

By rjbathgate - August 29, 2011

Hey gkornbluth,

Yeah I was going to take a look at existing plugins and amend... but ran out of time and had to just go for the plain and simple route...

Next time thou :)

Cheers