Quote from: Terry at Mar 14, 2009, 01:20 PM
I love this snippet!
However, I’m also stuck on this. How is this supposed to work?
I have determined that putting @INHERIT[!DocPassword!] will cause the child documents to adopt the password of the parent document. However, I still have to enter the password on each child document to view it.
Terry,
What happens when you simply enter
@INHERIT as the child’s password? Or, when you set
@INHERIT as the Default Value for DocPasswordTV template variable?
I just tried a test case (MODx v0.9.6.3) where I set @INHERIT as the
default value when setting up the TV. Then, I created a parent container (assigning it a password) as well as a few child documents with my DocPassword snippet call:
[!DocPassword? &redirect=`113`!]
(where 113 is my "password form" page...also, I confirmed that DocPasswordTV value was coming through as @INHERIT on the child document)
When I try to access the child document, I am taken to my password form page and only by entering the password I set up on the Parent Container am I able to access this child document...
The main limitation I see with the current version is having to re-type the same Inherited password for each child document...