[TYPO3] Content condition

stefan at aichholzer.name stefan at aichholzer.name
Tue Aug 19 17:21:48 CEST 2008


Please help, I can't get this to work:

I want the second option to be executed only if the $_GET var (faq) is
set. It does rewrite the entire thing when I first load it, but it works
when I go to mypage.com/?faq=100

Can anyone give me a hand???

Thank you



temp.mainTemplate {
  subparts.entrada = CONTENT
  subparts.entrada {
      table = tt_content
      select.where = pid=21
      select.andWhere = colPos=1
  }


  subparts.containers = CONTENT
  subparts.containers {
  table = tt_content
  select {
    pidInList = this
    orderBy = sorting
    where = colPos=0
  }

  renderObj = TEXT
  renderObj {
    field = header
    wrap = |<br>
    typolink.parameter.field = pid
    typolink.parameter.dataWrap = |
    typolink.additionalParams.insertData = 1
    typolink.additionalParams = &faq={field:uid}
    typolink.no_cache = 1
    if.isTrue.field=header
    }
  }


  subparts.containers >
  subparts.containers = CONTENT
  subparts.containers {
    table=tt_content
    select{
      where = colPos=0
      andWhere.insertData=1
      andWhere=uid={GPvar:faq}
      andWhere.if.isTrue.data=GPvar:faq
    }
  }


}

page.10 < temp.mainTemplate






More information about the TYPO3-english mailing list