String Output modifiers are great! There is very clear documentation here:
https://docs.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-(output-modifiers)
Unfortunately i'm running into an issue / bug where Template Variables that have NOT been given access to Templates are actually returning default value when [[*called]]. For instance I have Two Templates:
My Car
My Truck
I have a TV called CarColor (only access to the Template - My Car) and a TV called TruckColor (only access to the Template - My Truck). I have both TVs set as required & give them default values CarColor="BlueCar" TruckColor="BlueTruck".
This is where I'm having a problem. I assigned a document to the Template - My Car. The following output modifier is not showing empty:
[[*TruckColor:notempty=`Found [[*TruckColor]]`]]
It is returning the default value BlueTruck even though the document does not have access to the My Truck template or it's template variables.
I conducted a quick test and it appears that every document seems to have access to all TVs that are set to be required & given a default value - EVEN IF THEY DO NOT HAVE ACCESS TO THE TEMPLATE.
Why can I access these template variables?
Any guidance is greatly appreciated.