πPage Structure
Symfony html.twig file structure:
{% extends 'layouts/base.html.twig' %}
{% block title %}Home{% endblock %}
{% block stylesheets %}
<!-- map-vector css -->
<link rel="stylesheet" href="assets/css/plugins/jsvectormap.min.css">
{% endblock %}
{% block content %}
{{ component('breadcrumb', { breadcrumb: 'Dashboard', title: 'Home' }) }}
// main content here...
{% endblock %}
{% block javascripts %}
<!-- [Page Specific JS] start -->
<script src="assets/js/plugins/jsvectormap.min.js"></script>
<script src="assets/js/plugins/world.js"></script>
<script src="assets/js/plugins/world-merc.js"></script>
<!-- [Page Specific JS] end -->
{% endblock %}Layout settings
You can change the default layout in the routers/routes.js file in the body tag
Attribute
Description
data-pc-preset= "preset-1"
To set the your primary theme color you can change ['preset-1' to 'preset-10'] for different color.
data-pc-sidebar-theme = "light"
To set the Light color left Sidebar.
data-pc-sidebar-theme = "dark"
To set the Light color dark Sidebar.
data-pc-sidebar-caption = "true"
To set the caption on.
data-pc-sidebar-caption = "false"
To set the caption off.
data-pc-direction = "ltr"
To set the layout direction left to right.
data-pc-direction = "rtl"
To set the layout direction right to left.
data-pc-theme = "light"
To set the layout theme light.
data-pc-theme = "dark"
To set the layout theme dark.
Last updated