Bonjour à tous,
je me sers d'une page catalogue.html pour générer un catalogue plus ou moins imprimable avec des boucles thelia.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Catalogue</title>
<style type="text/css" media="print">
@page figures {
size: landscape
}
body {
background: white;
font-size: 10pt;
font-family:Arial, Helvetica, sans-serif
}
.titre {
page-break-after: always;
page-break-inside: always;
page-break-before: always;
text-align:center;
font-size:48pt;
font-weight: bold;
vertical-align:middle
}
.soustitre {
page-break-inside: always;
page-break-before: always;
text-align:center
}
.produit {
page-break-inside: always
}
.ligne {
border-bottom: 1px solid
}
</style>
</head>
<body>
<p class="titre">CATALOGUE 2011<br />
JANVIER 2011<br /></p>
<THELIA_MENU_RUBRIQUES type="RUBRIQUE" parent="0" classement="manuel">
<p class="titre">#TITRE</p>
<THELIA_BLOC_SOUS_MENU type="RUBRIQUE" parent="#ID">
<table class="soustitre">
<tr>
<td>
<THELIA_vignette type="IMAGE" rubrique="#ID" debut="1" num="1" hauteur="150">
<center><img src="#IMAGE" alt="#PRODTITRE" title="#PRODTITRE"/></center>
</THELIA_vignette>
<h3><b>#TITRE</b></h3>
</td>
</tr>
</table>
<table class="produit" cellspacing="0" cellpadding="5">
<table>
<tr>
<td width="330" align="left" class="ligne"><b>Désignation</b></td>
<td width="50" align="center" class="ligne" >
<b>Référence</b>
</td>
<!-- <td width="100" align="center" class="ligne"><b>Prix HT</b></td>
<td width="100" align="center" class="ligne"><b>Prix TTC</b></td> -->
</tr>
<tr>
<THELIA_PROD type="PRODUIT" rubrique="#ID" classement="manuel">
<td width="330" align="left">#TITRE</td>
<td width="50" align="center" >
#REF
</td>
<!--<td width="100" align="center" >#PRIXHT</td>
<td width="100" align="center"><b>#PRIXTTC</b></td>-->
</tr>
</THELIA_PROD>
</table>
</THELIA_BLOC_SOUS_MENU>
</THELIA_MENU_RUBRIQUES>
</body>
</html>
Mais depuis peu cette page refuse complètement de marcher... quand je charge la page, celle ci mouline puis donne une page blanche, je pense que cela vient de l'imbrication des boucles ou d'un trop grand nombre de produit sur notre site (un peu plus de 700 références actives, pour 90 rubriques en gros). Je précise que je n'ai jamais touché au parser ou autre je tourne en noyau natif, sur thelia 1.4.4.
Si quelqu'un a une idée pour me débloquer la situation
Last edited by thibs (14-10-2014 06:09:50)