Cattura di valori che arrivano da parametri esterni con Typo3

I wanted to capture the values ​​of two parameters that come to us from outside to populate an iframe placed on a page

parameter1 =

parameter2 =

if I knew the values ​​and set them directly in the typo3 setup area by writing for example

tt_content.list.20.ffiframe_pi1.src =


I would get a result in the sense that IFRAME populates and I see something important on the page

but what to do when I don’t know the values ​​of parameter1 and parameter2?

I tried something like this

tt_content.list.20.ffiframe_pi1.src =
tt_content.list.20.ffiframe_pi1.src.dataWrap = |userid={TSFE:fe_user|user|ses_userid}&sessionid={TSFE:fe_user|user|ses_id}&parameter1={}&parameter2={}


tt_content.list.20.ffiframe_pi1.src =
tt_content.list.20.ffiframe_pi1.src.dataWrap = |userid={TSFE:fe_user|user|ses_userid}&sessionid={TSFE:fe_user|user|ses_id}&parameter1={TSFE:idr}&parameter2={TSFE:k}

but I’m not getting any concrete results!

Forgive any syntactical blunders but I don’t know the syntax of Typo3 and I have no idea how it can populate my IFRAME, do you have any ideas to solve the problem? Thanks in advance for any answers

there are multiple options you can build that URL.

use a COA:
here you are very flexible with each part of the resulting string and can see or test each individual part of it

tt_content.list.20.ffiframe_pi1.src.cObject = COA
tt_content.list.20.ffiframe_pi1.src.cObject {
    10 = TEXT
    10.value =

    20 = TEXT = TSFE:fe_user|user|ses_userid
    20.wrap = userid=|

    30 = TEXT = TSFE:fe_user|user|ses_id
    30.wrap = &sessionid=|

    40 = TEXT = GP:idr
    40.wrap = &parameter1=|

    50 = TEXT = GP:k
    50.wrap = &parameter2=|

you used the other option: a dataWrap.

tt_content.list.20.ffiframe_pi1.src =
tt_content.list.20.ffiframe_pi1.src.dataWrap = |userid={TSFE:fe_user|user|ses_userid}&sessionid={TSFE:fe_user|user|ses_id}&parameter1={GP:idr}&parameter2={GP:k}

But you need to insert the correct data values.
For formular input you get the values by GET or POST which are available in TypoScript with the key GP (Data / getText — TypoScript Reference 12.4 documentation)

If your data comes from somewhere else you need a construct to get the values. If you get these parameters from a database or any other service the option with dataWrap could be complicated as you might need to prepare the data in a register (LOAD_REGISTER — TypoScript Reference 12.4 documentation). A COA might enable you more complicated single data parts which gets wrapped with a parameter name.