By: Fanfraleux
Date: 2004-08-25
Time: 09:27
|
problems with [bloc1.#] + [fr]
Hi,
I have some problems with [bloc1.#] ; indeed when i write it out of an array in which i have some dynamic datas, it prints me [bloc1.#]x2 that is to say 14 records instead of 7 for example... Where's my mistake ?
[fr]
Salut,
g quelques problemes avec la commande [bloc1.#] ; en effet quand je l'écrit en dehors d'un tableau, il m'affiche à l'écran [bloc1.#]x2 c'est à dire 14 enregistrements au lieu de 7 par exemple... Où est mon erreur ? D'avance merci
|
By: Skrol29
Date: 2004-08-25
Time: 09:47
|
Re: problems with [bloc1.#] + [fr]
Do you use the ByPage mode for this block?
|
By: Fanfraleux
Date: 2004-08-25
Time: 10:03
|
Re: problems with [bloc1.#] + [fr]
No I don't. The problem seems to come from the fact i use $TAB->MergeSpecial('var');
$TAB->MergeBlock('lst',$cnx_id,"SELECT DISTINCT name FROM projets ORDER BY name " //for a dynamic list |
before my
$TAB->MergeBlock('blk1',$cnx_id,"SELECT * FROM documents ORDER BY type ") ; |
|
By: Fanfraleux
Date: 2004-08-25
Time: 11:08
|
Re: problems with [bloc1.#] + [fr]
Sure the problem came from the
$TAB->MergeSpecial('var'); |
cause I have deleted it and it works. In fact I used to insert p1 parameter in my array that I merged with the MergeSpacial Method and it wasn't necessary (not sub-block).
Thanks a lot for your response and long life to TBS the best templates engine ever seen !!!
Sérieux c de la Bombe ton truc ;-))
|
|
Posting in progress.
Please wait...
|