TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

where to put tag nodata in block begin end?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: thuc101
Date: 2013-01-24
Time: 14:58

where to put tag nodata in block begin end?

Where I put tag nodata in block begin end?
ex

        [blk;block=begin]
        <div style="border:thin solid gray; width:200px; float:left; margin:5px">
            Hello good morning<br />
            Name : [blk.val]<br />
            ------------------
        </div>
        [blk;block=end]


By: Skrol29
Date: 2013-01-27
Time: 00:17

Re: where to put tag nodata in block begin end?

Hi,

Like this:

        [blk;block=begin]
        <div style="border:thin solid gray; width:200px; float:left; margin:5px">
            Hello good morning<br />
            Name : [blk.val]<br />
            ------------------
        </div>
        [blk;block=end]

        [blk;block=begin;nodata]
        <div>
          There is no data
        <div>
        [blk;block=end]

The nodata section is a another block with the same name.