Categories > TinyButStrong general >

Easiest Way to Accomplish This

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Maz
Date: 2006-09-23
Time: 00:18

Easiest Way to Accomplish This

I have the following code:

[resource;block=begin]
<div class="linkbox">
<h3>[resource.site_title;htmlconv=no]</h3>
<p class="linkdesc">[resource.description;htmlconv=no]</p>
<p class="linksinfo">Clicks Out: [resource.clicks] | <a href="redirector.php?site_id=[resource.site_id]">Visit this Site</a></p>
</div>
[resource;block=end]

But then, if there is no data to show, I would like it to do:

<div class="errbox">
.....
.....
</div>

I thought I could do that with

[resource;nodata]
    <div class="errbox">
    <h1>No Records</h1>
    </div>
[resource;end]

But I can't so I must have dreamed that. :)

What's the easiest and quickest way to accomplish this? Using latest version of TBS.
By: sheepy
Date: 2006-09-23
Time: 04:57

Re: Easiest Way to Accomplish This

Try

<div class="linkbox">[resource;block=div]...</div>
<div class="errbox">[resource;block=div;nodata]<h1>No Records</h1></div>