PDA

View Full Version : Is it possible to password protect a treenode?



robertdbuckley
18 Mar 2012, 11:34 PM
Hi,

Could anyone give me a clue how I could password protect the opening of a treenode with php? It shouldnīt be a complex procedure, just a simple php authorization. I canīt see any similar threads, but would find this function quite handy.

yours,

Rob

mitchellsimoens
19 Mar 2012, 7:19 AM
You can listen to beforeexpandnode event and return false to stop the expanding. You can then prompt for the password and if it is good then set an attribute on the node to allow expanding. Then in the beforeexpandnode event check this attribute to see if you should allow it.