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: [gkornbluth] Create a plugin to do same as 'hidden' field

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