[Typo3] RE: Taking a value from an URL

Marlies C mc at mcuniverse.com
Fri Feb 18 21:16:00 CET 2005


"JoH" wrote in message
> TSref says: select.where has no stdWrap properties but select.andWhere 
> has.
>
> So you can do the following
>
> tt_content.list.20.0.0 = CONTENT
> tt_content.list.20.0.0 {
>   table = tx_memberprofile_member
>   select.orderBy = first_name
>   select.pidInList.field = pages
>    select.andWhere.data = GPvar : stuff
>    select.andWhere.wrap = uid='|'
> }
>
> or even more
>
> tt_content.list.20.0.0 = CONTENT
> tt_content.list.20.0.0 {
>   table = tx_memberprofile_member
>   select.orderBy = first_name
>   select.pidInList.field = pages
>    select.andWhere.cObject = COA
>    select.andWhere.cObject  {
>        10 = TEXT
>        10.data = GPvar : stuff
>        10.noTrimWrap = |uid='|' AND|
>
>        20 = TEXT
>        20.data = GPvar : otherstuff
>        20.noTrimWrap = | pid='|' AND|
>
>        30 = TEXT
>        30.data = GPvar : otherstuff
>        30.noTrimWrap = | whatever='|'|
> }
>
> Got it?
>
> Joey
>
>

Thank you Joey for your help.

This is how we ended up coding it:

temp.linkparams = COA
temp.linkparams {
  #create sub COAs for every possible piVar
  10 = COA
  10 {
    #replace tx_svdgbseminar with the name of the extension you would like 
to get the piVars from
    10 = TEXT
    # 10.value = &tx_svdgbseminar_pi1[showUid]=
     10.value = &tx_memberprofile[showUid]=
    #receive the value of the piVar with GPvar as describe in the datatype 
reference of the TS-Ref
    20 = TEXT
    20.data = GPvar : tx_memberprofile | showUid
    #only add the sub COA if the piVar contains something
    if {
      isTrue.data = GPvar : tx_memberprofile | showUid
    }

  }


  #here comes the next sub COA for just another piVar. Add as many sub COAs 
as required

  20 = COA
  20 {
    10 = TEXT
    10.value = &tx_svdgbseminar_pi1[theme]=
    20 = TEXT
    20.data = GPvar : tx_svdgbseminar_pi1 | theme
    if {
      isTrue.data = GPvar : tx_svdgbseminar_pi1 | theme
    }
  }
}


# temp.PRINT.field = uid


## Transfering to the tt_content.list object:

tt_content.list.20.0 >
tt_content.list.20.0 = CASE
tt_content.list.20.0.key.field = layout
tt_content.list.20.0.0 = CONTENT
tt_content.list.20.0.0 {
   table = tx_memberprofile_member
   select.orderBy = first_name
   select.pidInList.field = pages
   select.andWhere.data = GPvar : tx_memberprofile | showUid
   select.andWhere.wrap = member_id='|'
}


Regards,
Marlies
www.enomaly.com





More information about the TYPO3-english mailing list