Creating a custom Visualization template

  • Views Views: 4,982
  • Last updated Last updated:
  • Location​

    Visualization templates are located in
    "/plugins/fabrik_visualization/<plugin-name>/views/<plugin-name>/tmpl/". Each template has its own folder.

    Custom CSS in existing visualization templates​

    You can put a file named "custom.css" into this folder, which is then rendered as stylesheet link into the resulting page. A file named custom_css.php is not recognized at this time (fabrik 3.8.2).

    Copying an existing template​

    To create a new template we suggest that you copy an existing template folder and alter it to suit your needs.

    Copy:
    /plugins/fabrik_visualization/<plugin-name>/views/<plugin-name>/tmpl/Bootstrap
    to:
    /plugins/fabrik_visualization/<plugin-name>/views/<plugin-name>/tmpl/<your-template>

    The template used for a visualisation is normally set in the Options tab of the admin configuration page for this visualization. In distinction to list templates, this can not be overridden in the menu item referencing it.
Back
Top