Categories > TinyButStrong general >

Conditional display overview

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Preben Holm
Date: 2006-08-17
Time: 09:58

Conditional display overview

Hi,

I have an array of objects I would like to display for the user, but the user
can not be allowed to see all of the products in the variable.

How can I display only the parts of the products that he/she is allowed to see.
In PHP I would write:
  if (user->hasToken(product->viewToken)) {
    display(product);
  }
By: Skrol29
Date: 2006-08-17
Time: 10:31

Re: Conditional display overview

Hello,

There is no a simple way to do this in the template side.
You have to prepare the data in the PHP side before to proceed the merge.