Intraweb 14.2.7 duplicate head section of my html template

<< Click to Display Table of Contents >>

Navigation:  Forum >

Intraweb 14.2.7 duplicate head section of my html template

Forum link

 


 

11-25-2019, 02:44 PM:

 

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?

 


 

11-27-2019, 09:10 AM:

 

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

 


 

11-27-2019, 09:57 AM:

 

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.

 


 

11-27-2019, 12:18 PM:

 

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>

 

 

 


 

11-27-2019, 12:49 PM:

 

I've put it and now it duplicates the body too; the head remains duplicated.

 

I've attached both files.

 


 

11-27-2019, 03:49 PM:

 

Hi, i think you don't understand how IW works when using MasterTemplates. I rewrite your page. In your ServerController -> MasterTemplate := 'MASTER.html';

 


 

11-28-2019, 09:53 AM:

 

Thank you a lot.

 

You were right.

 

It works now.