Template Variables are template specific, the only way to access a TV is by calling it in your template:
When they say that templates don't have access to a template variables they are talking about having access to it via the Template Variables Tab in the manager not the front end.
So In template 1 as you can see on line 9 we are calling it and we are using an output modifier to render TV is empty if the TV is empty but since your TV has a default value it is not empty.
In Template 1 if you go to the Template Variables tab you will see you have access to the createPDF checkbox.
In template 2 you can see lines 9 and 11 I removed the call to the TV so it won't render it in that template the only way the TV will render on Template 2 is if you specifically call it in the content area or one of the other fields provided by MODX so if you put:
Now go to Template 2 Template Variable tab and you will not have access to the createPDF TV because the Template does not have access to it unless you duplicated Template 2 from Template 1 and left the TV access checkbox on it.
Inside the content area of Template 2 it will render it's default value even though the template does not have access to it on the Template variable tab in the manager side it will still render on the front end because it has a default value.
Hopefully that clears it up for you.
[ed. note: benmarte last edited this post 13 years, 2 months ago.]