[TYPO3-english] pt_extlist with condition if else

bernd wilke t3ng at bernd-wilke.net
Wed Apr 1 12:28:08 CEST 2015


Am 01.04.15 um 12:08 schrieb Sebastian Gärtner:

> ----------------------------------------------------
> also made it as a CASE function which works almost better
>
> 15{
>                label = UNTIL
>              columnIdentifier = years_paid
>              fieldIdentifier = years_paid
>              field = years_paid
>                  renderObj = CASE
>                  renderObj {
>                      key.field = years_paid
>                      default = TEXT
>                      value = <div class="alert alert-danger"
> role="alert">NOT PAID</div>
>                      2016 = TEXT
>                      2016.value = <div class="alert alert-success"
> role="alert">2016</div>
>                      2015 = TEXT
>                      2015.value = <div class="alert alert-info"
> role="alert">2015</div>
>                       2014 = TEXT
>                      2014.value = <div class="alert alert-warning"
> role="alert">2014</div>
>                       2013 = TEXT
>                      2013.value = <div class="alert alert-danger"
> role="alert">2013</div>
>             }
>          }

if years_paid is a list of years your CASE will not work

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list