Re: ITX problems using multiple files
| From: | Bertrand Mansion | Date: | Wed, 29 May 2002 07:53:03 +0000 |
| Subject: | Re: ITX problems using multiple files | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1496@lists.php.net to get a copy of this message | ||
le 28/05/02 20:00, Andrew Cant à acant@uhnres.utoronto.ca a écrit :
> 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.
Make sure you use setCurrentBlock and parseCurrentBlock each time you change
of major block.
Bertrand Mansion
Mamasam