Override RSKala! template positions

Although RSKala! offers tremendous flexibility when choosing or modifying existing positions via the Template Positions builder functionality, if you want to custom code your desired position this can be done without having to worry about loosing these changes after you update the template. The following position rows can be overridden:

  • main menu
  • slideshow
  • breadcrumbs
  • before-higher
  • higher
  • before-content
  • after-content
  • before-middle
  • middle
  • before-lower
  • lower
  • before-bottom
  • bottom
  • after-bottom
  • before-footer
  • footer
  • copyright

Let's assume for example you want to override the higher template position. Steps you need to take:

  1. create an empty PHP file named exactly after the position, in our case higher.php
  2. place the file within RSKala! positions folder (\templates\rskala\positions\)
  3. add your custom PHP code within this particular file
 
Tip: you can use the following to print out details about that particular template position row:
        var_dump($settings->columns);die();

Was this article helpful?

Yes No
Sorry about that