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.
Hello

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: http://docs.atozed.com/docs.dll/developm...lates.html
You need a $body tag in your MASTER, ex:
Code:
<body>
  <div class="div-body">$body
  </div>
  <div class="div-footer">
    (C) Atozed Software Ltd.
  </div>
</body>
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.