title: how to change dynamically the page layout in octobercms
body: <p>I would like to change the <strong>layout of a page dynamically</strong> in octobercms</p>
  
  <p>it means that from the value of a session the layout of the page must change</p>
  
  <p>I made this code but it does not work:</p>
  
  <hr>
  
  <pre><code>==
  &lt;?php
  
  function onInit()
  {
     $this.layout.id = default;
  }
  
  ?&gt;
  ==_
  </code></pre>
  
  <hr>
  
  <p>so how to do it ?
  thank you in advance</p>