By: Cleiver
Date: 2006-09-11
Time: 20:27
|
Blockmerging in subtpl modeFirst of all, sorry my english mistakes... I'm completelly out of pratice..
So... I'm developing a system and I'm using subtemplates to insert the header, the menu, the content and the footer. Everything was working fine until I have to make the menu work dynamically. in my index page I have two combobox that are filled with values from the database: INDEX.PHP
INDEX.HTML
This is working great. The problem happens now, with the dinamic content at the menu page: INC_MENU.PHP
INC_MENU.HTML
With these codes, when I run the page I get the following error: TinyButStrong Error when merging block [blk_menu] : unsupported variable type : 'NULL'. I call the inc_menu.php page this way: [onload;script=inc_menu.php;subtpl] So... the blocks merged at the index.php are working fine... but the menu doesn't... if I take out the block at the index, the menu works. It's like if there is some kind of conflict between the blocks. I've already tried to change the names of the variables and the blocks, but I've just got the same error. You can see this running at http://www.icodz.com.br/projetos/transimoveisrio2/ To see the manu working, just click ate one of the topmenu links Thanks for all the help you can provide me! |
||||
By: TomH
Date: 2006-09-11
Time: 21:42
|
Re: Blockmerging in subtpl modeHI,
The error you get is the one I get whenever my db connection did not give a result. SO I would check to verify that you are getting a db result in the INC_MENU.PHP script ALso - AFAIK you need to include your tbs_class and your connection script in the INC_MENU.PHP -- I cannot see what you have in your "config.php" file so I'm not sure what all you do there but I would try to do INC_MENU.PHP like this to test...
Hope that helps a little, |
||||
By: Cleiver
Date: 2006-09-11
Time: 21:47
|
Re: Blockmerging in subtpl modeconfig.php are the connection functions... mysql_connect and mysql_selectdb only...
I'm getting a db result... the two combos at index page are filled with data from the database.... And the menu works fine at the other pages that don't have the mergeblock function, like here (http://www.icodz.com.br/projetos/transimoveisrio2/quem_somos.php) for exemple... |
||||
By: TomH
Date: 2006-09-12
Time: 04:02
|
Re: Blockmerging in subtpl modeI was talking about the db nnection that is inside the INC_MENU.php file (NOT THE QUERIES IN THE INDEX FILE)
Cut and paste the actual index.php -and- index.html code that you are using. |
||||
By: Cleiver
Date: 2006-09-12
Time: 13:07
|
Re: Blockmerging in subtpl modeINDEX.PHP
INDEX.PHP
|