Categories > TinyButStrong general >

hidding [block] problem :'(

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Spodletela
Date: 2004-11-18
Time: 09:35

hidding [block] problem :'(

I have a simple search engine, that is using block to fill results in a table. When there is no results, i want to keep that block hidden, but i cant get conditional [blk;block=begin;when [somvar]=1] working :'(

How to do it?
By: Skrol29
Date: 2004-11-18
Time: 16:03

Re: hidding [block] problem :'(

Why can't you?
By: Spodletela
Date: 2004-11-22
Time: 09:30

Re: hidding [block] problem :'(

i am constantly having this problem, now again at some other code (i sloved previous problem by loading a template, then use tbs->Source as a field in another, so i could set up condition in php)

it  just wont work :'(

now another condition; user rights, i want to hide some button, based on some bool to remove some (delete) button from form.

[security;block=begin;when [security.form1.delete]=1]
<input class = 'button' ...>
[security;block=end]

security.form1.delete is bool and if i try to print it out in template it works, but when i try to use it this way i get out (shematic) :

Array [Button] Array

Conditional blocks are VERY GOOD idea, but I just dont get it?


By: Spodletela
Date: 2004-11-22
Time: 10:15

Re: hidding [block] problem :'(

Solved... onshow was the problem... sorry for wasting bytes ;)