Technically, you will need to use
[!DocPassword!] on EACH page you want protected. However, you could easily add the snippet call to your template (in a chunk) to include for you automatically.
Remember, the only pages that are protected are the ones you actually define a password for. (You could get creative with the TV Default Values to find a solution that works for you.)
I’m not sure what kind of hierarchy you are working with, let alone its complexity, but where there’s a will there’s a way
Essentially, you need to do the following:
Quote from: "Install
1. Install the snippet
2. Install the TV (named DocPasswordTV, assign to needed templates)
3. Place [!DocPassword!] snippet call on a page you want protected
3a. Enter a password for the page, then save
4. Place [!DocPassword? &redirect=`[*id*]`!] snippet call on your site’s unauthorized page (If you don’t have one yet, I suggest you create one and then update your site configuration)
BTW, what version of MODx and what version of PHP are you running? (sorry, I only tested this on MODx 0.9.6/PHP 5.2.4, so I’d like to rule this out if possible) Also, did you copy and paste from this thread (before I posted the Repository release) or did you get it from the repository download? I have seen issues related to white-space, etc when copying code directly from a browser)