title: Finding a modules position in Opencart 2
body: <p>I am trying to get a modules position so that I can alter the template based on where it is being placed. I used to check the <code>$setting['position']</code> from inside the controller and then pass that to the view, but as positioning of modules is being done through the layout manager, that property is no longer available.</p>
  
  <p>This is what works in Opencart 1.5.6 -</p>
  
  <pre><code>// Module Controller
  $this-&gt;data['position'] = $setting['position'];
  
  // Module View
  &lt;?php if ($position === "content_top" or $position === "content_bottom") { ?&gt;
      &lt;!-- position specific markup --&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>How can the same thing be achieved in Opencart 2?</p>