QloApps Forums
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    What is the value of $template \themes\hotel-reservation-theme\layout.tpl

    Technical Help
    2
    2
    20
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Aniekan Akai last edited by

      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.

      A 1 Reply Last reply Reply Quote 0
      • A
        Aradhana Singh Global Moderator @Aniekan Akai last edited by

        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:

        Create Ticket - QloApps Support

        1 Reply Last reply Reply Quote 0
        • First post
          Last post