|  | Posted by willl69 on 07/06/05 04:20 
Hi
 I was wondering if there was a way to include mutiple metal:use-maco tags
 in
 the one page. The code i am using is the following (html)
 
 <tr>
 <td style="height: 600px; vertical-align: top;">
 
 <div metal:use-macro="path/file.htm/body_page" />
 </td>
 <td style="vertical-align: top;">
 
 <div metal:use-macro="path/file2.htm/body_page" />
 </td>
 </tr>
 
 This code will read the htm files and output the data, but if i have php
 elemets in the included body page
 (say <div tal:content="some_variable"/> in file1.htm), i get the following
 
 error
 
 From c:/xampp/htdocs/lcms/static/file.htm around line 0
 exception 'PHPTAL_Exception' with message 'Unable to find path
 new_message_data'
 in C:\xampp\htdocs\lcms\include\phptal\PHPTAL\Context.php:152
 
 
 and if i include the PHP file.php insead of the HTM file.htm i get the
 following error
 
 
 *Fatal error*: Call to undefined function
 tpl_1_0_9bf6b6b7cae305f92d93ab55bcd87546c_c:/xampp/htdocs/lcms/page/file.php()
 
 in *C:\xampp\htdocs\lcms\include\phptal\PHPTAL.php* on line *348
 
 *Does anyone know a way to include these files so that it reads the
 file.phpfile, passes all relevent info to the <div
 metal:define-macro="body_page">...</div> in the file.htm file and outputs
 
 the macro into the line <div metal:use-macro="path/body_page"> in a main
 template file? Any help, suggestions or workarounds for this are greatly
 appreciated.
 
 Cheers
 
 Will
  Navigation: [Reply to this message] |