Seite 1 von 1

Verschachtelte Blöcke im Template

Verfasst: 08.04.2005 16:54
von Fice
Ich habe also z.B. folgendes Template

Code: Alles auswählen

{TPL_HDR1}{TPL_HDR2}
<!-- BEGIN Block1 -->
 <tr>
  <!-- BEGIN Block2 -->
  <td></td>
  <!-- END Block2 -->
 </tr>
<!-- END Block1 -->
und nun aktiviere ich die nacheinander,
mit:

$template->assign_block_vars("BLOCK1", array());

aber der innere Block wird nie angezeigt, wieso?????

Ich hoffe ihr könnt mir helfen


Edit: Hab das Problem gelöst, der innere Block muss ich wie folgt aktivieren:
$template->assign_block_vars("BLOCK1.BLOCK1", array());