By: Michael Frey
Date: 2016-05-16
Time: 11:00
|
Conditional display with arrayI have an array which I merge as a field.
Then on my view I have several links. I only want to show the link IF the user has the right in his array. How would I achieve this?
Using MergeBlock is not really an option I want to go with, because my actual links are much more complicated and contain custom hardcoded data and styles. |
||
By: Skrol29
Date: 2016-05-20
Time: 15:44
|
Re: Conditional display with arrayA solution :
PHP
Template
Parameter "noerr" return empty string ('') if the item is not found. Parameter "ope=minv" makes the TBS fields to be never displayed. See http://www.tinybutstrong.com/manual.php#html_field_prm_ope Please not that a MergeField() is slower than a MergeBlock(). |
||
By: Michael Frey
Date: 2016-05-20
Time: 22:19
|
Re: Conditional display with arrayThank you. Exactly what I wanted. Didn't know about the ope part.
|