[TYPO3-german] TypoScript- Frage: zwei TEXT Objects mit ' AND ' verknüpfen - Bedingung: erstes TEXT Object muss Inhalt haben

Gregor Hermens gregor at a-mazing.de
Fri Oct 21 15:26:40 CEST 2016


Johannes C. Laxander wrote:

> Irgendwer eine Idee ????

ungetestet:

10.cObject = COA
10.cObject {
  10 = TEXT
  10.value = 1
  20 = TEXT
  20 {
    required = 1
    noTrimWrap = | AND ||
    dataWrap = job_type = {GP: jobtype}
    dataWrap.if {
      value = 0,1
      isInList.data = GP:jobtype
    }
  }
  30 = TEXT
  30 {
    required = 1
    noTrimWrap = | AND ||
    dataWrap = contract_type = {GP: contracttype}
    dataWrap.if {
      value = 0,1,2,3
      isInList.data = GP: contracttype
    }
  }
}

Das sollte diese Abfrage ergeben:

... WHERE 1 [ AND job_type=x][ AND contract_type=y] ...

hth
Gruß,
Gregor
-- 
http://www.a-mazing.de/   |   Certified TYPO3 Integrator



More information about the TYPO3-german mailing list