typo3 - How link to URL of single news article via CONTENT object -


i using typoscript below display news content via content object. working great except link doesn't go page of article. there way tell typolink news article , should use cached cooluri link it?

also, additionalparameter i'm trying append querystring isn't appearing.

    temp.mmtest = coa temp.mmtest {     10 = content    10.table = tt_news    #10.select.pidinlist = 170  # uid of sysfolder news records stored    10.select.pidinlist = 18    10.select.recursive = 10    #10.select.where = uid=10 # uid of existing news record    10.select.andwhere = deleted=0 , hidden=0    10.renderobj = coa    10.renderobj {      10 = text      10.field = title      10.wrap = title:&nbsp;|<br>      10.typolink.parameter.field=uid     typolink.parameter.datawrap=|     #typolink.additionalparams.insertdata=1     typolink.additionalparams.data=&my_extra_param=something     #if.istrue.field=header    }    10.renderobj.20=image    10.renderobj.20{           wrap=|                             # show if inserted           stdwrap.if.istrue.field=image           stdwrap.typolink.parameter.field=uid           file.import=uploads/pics/           file.import.field=image           file.width=100           file.height=100    }  } 

i not know, parameters need, in short:

10.typolink {   # need page link   parameter = page_id_of_single_view    # create cacheable link, not depend on cooluri or realurl.   usecachehash = 1    # add additional params   additionalparams.wrap = &tx_ttnews[uid]=|    # data expects special commands   # "&my_extra_param=something" cannot work on .data   additionalparams.data = field:uid } 

if need more 1 additionalparams way:

10.typolink {   parameter = page_id_of_single_view   usecachehash = 1    # create content object array   # can separat different entries   # cobject return &tx_ttnews[uid]=123&what[ever]=hardcodedvalue   # additionalparams filled string , added url   additionalparams.cobject = coa   additionalparams.cobject {     10 = text     10.wrap = &tx_ttnews[uid]=|     10.field = uid     20 = text     20.wrap = &what[ever]=|     20.value = hardcodedvalue   } } 

you not need

10.select.andwhere = deleted=0 , hidden=0 

this added automatically content object.

read more typolink coa , stdwrap , property data , have @ gettext.


Comments