Atozed Forums

Full Version: Intraweb 14.2.7 duplicate head section of my html template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

In a Delphi Intraweb application I use a TIWTemplateProcessorHTML with a html template as a workframe, but at runtime, the head section of my html is duplicated, hence runtime issues.
I've uploaded the html page created by Chrome.

What do I do wrong? Any ideea?
Are you using master templates? Most of the times this is caused by issues on the html used as template... so I'd have to check your template do know
Yes, I use master templates and in all of them the head is duplicated. I've attach the template below and the code generated by Chrome at runtime.
Hi, read this:
You need a $body tag in your MASTER, ex:
  <div class="div-body">$body
  <div class="div-footer">
    (C) Atozed Software Ltd.
I've put it and now it duplicates the body too; the head remains duplicated.
I've attached both files.
Hi, i think you don't understand how IW works when using MasterTemplates. I rewrite your page. In your ServerController -> MasterTemplate := 'MASTER.html';
Thank you a lot.
You were right.
It works now.