title: Getting an array with all positions names from a Joomla template
body: <p>I want to get an array with all current template positions names as listed in the respective templateDetails.xml. </p>
  
  <p>I tried:</p>
  
  <pre><code>$this-&gt;params-&gt;get('positions')
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>The code will be called or inserted into /templates/mytemplate/index.php file.</p>
  
  <p>I've seen in the module parameters page a select that displays all available positions from all installed templates, maybe it gives a clue on how to achieve it.</p>