What is the value of $template \themes\hotel-reservation-theme\layout.tpl
-
To make UI changes to the front page, I understand I would need to make changes to the layout.tpl for my UI changes, but I don't understand where the page layout information that is expected to be in the line
{if !empty($template)}{$template}{/if}Can some one please provide me some insight on this? I will also be making changes to header.tpl, I'm expecting this information wouldcome in handy there too.
-
Hi @Aniekan-Akai ,
The layout.tpl file works as the main frontend layout wrapper in QloApps. The line:
{if !empty($template)}{$template}{/if}is used to load the dynamic page content assigned by the controller, such as the homepage, CMS page, booking page, room page, etc.
In simple terms:
-
layout.tpl controls the overall page structure
-
$template contains the actual page content
-
header.tpl manages the header section of the website
So, for UI changes:
-
Use layout.tpl for overall page layout changes
-
Use page-specific .tpl files for content section changes
-
Use header.tpl for header-related customization
If you face any difficulties, kindly create a ticket with detailed requirements/screenshots so our team can assist you further:
-