eZ Community » Forums » General » Bad template display
expandshrink

Bad template display

Bad template display

Tuesday 15 May 2012 7:08:22 pm - 2 replies

Hi,

I'am working on website with eZPublish 4.4 , but i got a problem with one page.

In fact, sometimes in this page, all lines between my HEAD tag are not present and when i refresh everything is ok.

It's strange then sometimes i don't have problem during 15 minutes and after i get it.

Does anyone got an idea about to solve this problem ?

This is my template code :

 {def $redirect = ezhennerinstitutionnelacceptlanguage()}
 {if $redirect|not()}
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--[if lt IE 7 ]> <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="{$site.http_equiv.Content-language|wash}"  lang="{$site.http_equiv.Content-language|wash}" class="ie6">  <![endif]-->
 <!--[if IE 7 ]>    <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="{$site.http_equiv.Content-language|wash}"  lang="{$site.http_equiv.Content-language|wash}" class="ie7">  <![endif]-->
 <!--[if IE 8 ]>    <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="{$site.http_equiv.Content-language|wash}"  lang="{$site.http_equiv.Content-language|wash}" class="ie8">  <![endif]-->
 <!--[if IE 9 ]>    <html xmlns="http://www.w3.org/1999/xhtml"  xml:lang="{$site.http_equiv.Content-language|wash}"  lang="{$site.http_equiv.Content-language|wash}" class="ie9">  <![endif]-->
 <!--[if (gt IE 9)|!(IE)]><!--> <html  xmlns="http://www.w3.org/1999/xhtml"  xml:lang="{$site.http_equiv.Content-language|wash}"  lang="{$site.http_equiv.Content-language|wash}">  <!--<![endif]-->
 <head>
     {* Include du template contenant les informations de SEO *}
     {include uri='design:page_head.tpl'}
     {* Include du template chargeant les librairies javascript *}
     {include uri='design:page_head_script.tpl'}
     {* Include du template chargeant les feuilles de styles *}
     {include uri='design:page_head_style.tpl'}
 </head>
     
 <body class="templatePrehome {$site.http_equiv.Content-language|extract(0,2)}">    
 
     {def $pagedata = ezhennerinstitutionnelpagedata()}
 
     <div id="container">
         {cache-block keys=array($uri_string, $site.http_equiv.Content-language)}
         
         {if is_unset($pagedata)}
             {def $pagedata = ezhennerinstitutionnelpagedata()}
         {/if}
         
         {* Include du template affichant la bannière du site *}
         {include uri='design:page_header.tpl'}
         {/cache-block}
         <div id="content">
             <div id="contentContainer">
                 <div id="contentPage">
                     {$module_result.content}
                 </div>
                 <!-- end #contentPage -->
             </div>
             <!-- end #contentContainer -->     
         </div>
         <!-- end #content -->
         {cache-block keys=array($uri_string, $site.http_equiv.Content-language)}
     
         {if is_unset($pagedata)}
             {def $pagedata = ezhennerinstitutionnelpagedata()}
         {/if}
         
         {* Include du template affichant le pied de page du site *}
         {include uri='design:page_footer.tpl'}
     
         {* Include du template generant le plan du site (affichage masque) *}
         {include uri='design:page_footermap.tpl'}
         
         {* Include du code google analytics *}
         {include uri='design:page_googleanalytics.tpl'}
         
         {/cache-block}
 
     </div>
 
     <!--DEBUG_REPORT-->
 </body>
 </html>
 {/if}

Thanks

Cheers

Modified on Tuesday 15 May 2012 10:21:25 pm by Etienne Loth

Tuesday 15 May 2012 10:35:14 pm

I find one thing , my page is already broken when one content is published.

Any idea ?

Thanks

Wednesday 16 May 2012 8:44:04 am

It's ok i find my problem , it's come from one cache block misplaced.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu