ITX problems using multiple files
| From: | Andrew Cant | Date: | Tue, 28 May 2002 18:00:04 +0000 |
| Subject: | ITX problems using multiple files | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-1484@lists.php.net to get a copy of this message | ||
I know that this topic has probably already been discussed but I haven't seen any reference to the problem that I'm running into.
When I use addBlockFile() to replace a placeholder with a block containing another file the block inside of that file start to misbehave.
Here are the details of my problem:
(Note: I am using v1.6.2.1 of ITX.php)
I want to use one global template, such as this:
<html>
<body>
{BODY}
</body>
</html>
And then have other templates which replace the BODY placeholder.
Inside the BODY templae i am trying to create a two-level list by doing block interations. The body template is structured like this:
<!-- BEGIN major -->
<h1>{MAJOR_NAME}</h1>
<!-- BEGIN minor -->
<h2>{MINOR_NAME}</h2>
<!-- END minor -->
<!-- END major -->
I have gotten results where the last MAJOR name is the only one which is displayed but all of the MINOR names are displayed.
I'm not entirely sure that I understand what is going on here and I haven't been able to find alot of documentation.
If anyone could point me in the right direction before I have to start mucking around in the code itself it would be much appreciated.
Andrew Cant