By: Pirjo Posio
Date: 2004-09-15
Time: 13:37
|
Sub-blocks and array-data?
Can sub-blocks be used, when data is not SQL, but array_type_2?
|
By: Skrol29
Date: 2004-09-15
Time: 14:15
|
Re: Sub-blocks and array-data?
With TBS >= 2.0 only.
|
By: brildrager
Date: 2004-11-01
Time: 23:11
|
Re: Sub-blocks and array-data?
And how will I do it?
I'm trying it but it doesn't work and I can't find anything about it in the manual.
|
By: Skrol29
Date: 2004-11-01
Time: 23:50
|
Re: Sub-blocks and array-data?
Maybe I was confusing array_type_2 and array.
You can use sub-blocks with php Array using the keywokd 'array' as data source and a special string as query like it is descibed in the manual. You've got also an example on it.
Can you tell me what is array_type_2?
It seems to be a special field type used for certain database type.
|
By: Pirjo Posio
Date: 2004-11-02
Time: 00:20
|
Re: Sub-blocks and array-data?
Hi all,
Just to precise what I originally meant with array_type_2:
Case 2:
Example: [0] => (['column1']=>value1-0 ; ['column2']=>value2-0 ; ...)
[1] => (['column1']=>value1-1 ; ['column2']=>value2-1 ; ...)
[2] => (['column1']=>value1-2 ; ['column2']=>value2-2 ; ...)
|
The above is from TBS manual, below Data Source table. In some versions this was called "array type 2", now "Case 2".
In the "Sub-blocks"-example you can find a solution for my original question.
See also "Data"-example on "Array", especially 'blk3'.
|
By: brildrager
Date: 2004-11-02
Time: 18:54
|
Re: Sub-blocks and array-data?
Whoops :$,
An subblock with an array was already in the examples, I didn't see them cause I usaully set tje contenttype to 'MySQL'.
|
|
Posting in progress.
Please wait...
|