Categories > TinyButStrong general >

Blocks within blocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Nick
Date: 2008-08-17
Time: 01:28

Blocks within blocks

Hello!

I've tried searching this forum and it looks like others have had this question before, but the given solution wouldn't work in my case :(

What I'm trying to do is merge a blocks that have a parent block (after the parent is generated of course). Basically I have an array:

$items = array(
    [0] => array(
               'name' => 'Item name',
               'desc' => 'Item description',
               'pictures' => array(
                                       [0] => "picture1",
                                       [1] => "picture2" //etc
                                  )
           )
    [1] => array ( // same thing, item properties and a list of pictures )
)

So basically I have to output that structure - each item's properties one of which is a list (pictures in my case)

Is there a simple way to do that using TBS?
Thanks
By: TomH
Date: 2008-08-17
Time: 18:58

Re: Blocks within blocks

Since no one has answered yet...

You mention that the the given solutions you found wouldn't work -- please include the template code that you tried to get working and the actual template output you got and then the expected template output.

I need to see what you actually did in order to suggest something to try to help you fix it.

No pseudo code please - that hurts more than it helps.