![]() |
Intraweb 14.2.7 duplicate head section of my html template - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Intraweb 14.2.7 duplicate head section of my html template (/thread-1401.html) |
Intraweb 14.2.7 duplicate head section of my html template - radub - 11-25-2019 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? RE: Intraweb 14.2.7 duplicate head section of my html template - Alexandre Machado - 11-27-2019 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 RE: Intraweb 14.2.7 duplicate head section of my html template - radub - 11-27-2019 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. RE: Intraweb 14.2.7 duplicate head section of my html template - Jose Nilton Pace - 11-27-2019 Hi, read this: http://docs.atozed.com/docs.dll/development/Working%20with%20Templates.html You need a $body tag in your MASTER, ex: Code: <body> RE: Intraweb 14.2.7 duplicate head section of my html template - radub - 11-27-2019 I've put it and now it duplicates the body too; the head remains duplicated. I've attached both files. RE: Intraweb 14.2.7 duplicate head section of my html template - Jose Nilton Pace - 11-27-2019 Hi, i think you don't understand how IW works when using MasterTemplates. I rewrite your page. In your ServerController -> MasterTemplate := 'MASTER.html'; RE: Intraweb 14.2.7 duplicate head section of my html template - radub - 11-28-2019 Thank you a lot. You were right. It works now. |