title: Using TemplateVariable checkbox ModX
body: <p>I'm trying to display social icons if user check checkbox in template varribles.<br>
  So i made everything I need to display this checkbox on each page (i have 1 template only) in template varribles.<br>
  Next i put this code into base.html (i use static files for all chunks and template - this file is BaseTemplate static file)</p>
  
  <pre><code>&lt;?php if ($modx-&gt;getTemplateVar(1,'Yes')) { ?&gt;
    &lt;a href="#"&gt;&lt;img src="assets/templates/default/images/facebook.png" alt="Facebook" style="width: 26px; height: 26px; border: 0; margin-left: 40px;" /&gt;&lt;/a&gt;
    &lt;a href="#"&gt;&lt;img src="assets/templates/default/images/twitter.png" alt="Twitter" style="width: 26px; height: 26px; border: 0; margin-left: 10px;" /&gt;&lt;/a&gt;
    &lt;a href="#"&gt;&lt;img src="assets/templates/default/images/linkedin.png" alt="LinkedIn" style="width: 25px; height: 25px; border: 0; margin-left: 10px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>Also i tried:</p>
  
  <pre><code>&lt;?php if ($modx-&gt;getTemplateVar($social,'Yes')) { ?&gt;
  </code></pre>
  
  <p>where <code>social</code> is a name of my TV, <code>1</code> is id of my TV.</p>
  
  <p>And this is what i get on website:</p>
  
  <pre><code>getTemplateVar($social,'Yes')) { ?&gt;
  </code></pre>
  
  <p>I though this is because i cant use php in chunks/template file, so i create snippet and put code to check TV is checked into it, but this didnt give me any results.</p>
  
  <p>Here is <a href="http://wiki.modxcms.com/index.php/Template_Variable_Checkbox" rel="nofollow">documentation</a> i read to use TV.<br>
  What em i doing wrong? How to use TV in this way, not as a filter while display resource?</p>