TYPO3 Formhandler输入字段为additionalParam(TYPO3 Formhandler input field as additionalParam)

我目前正在构建一个注册系统,通过重定向将应用程序进程(Formhandler)与支付流程(自定义扩展)连接起来。

作为此连接的一部分,我想通过GET参数将值从Formhandler传递到我的自定义扩展。 Formhandler模​​板包含此值的隐藏字段,该值由JavaScript设置:

<input type="hidden" name="formhandler[orderid]" id="orderid" value="###value_orderid###" />

Formhandler的TypoScript包含这个终结器:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.value = orderid } }

但是在成功重定向之后,URL看起来像这样:

xxxxxx/zahlungen/?order=orderid

整理器不传递值,而是将字段名称设置为文本。 我究竟做错了什么? 我希望它看起来像这样,例如:

xxxxxx/zahlungen/?order=12345

我还包括一个将值写入数据库的终结器,这可以完美地工作:

3.class = Finisher_DB 3.config{ table = tx_chilifhregistration key = uid fields { orderid.mapping = orderid

I am currently constructing a registration system that connects the application process (Formhandler) with the payment process (custom extension) via a redirect.

As a part of this connection, I want to pass a value from the Formhandler to my custom extension through a GET parameter. The Formhandler template contains a hidden field for this value, the value is set by JavaScript:

<input type="hidden" name="formhandler[orderid]" id="orderid" value="###value_orderid###" />

The TypoScript for the Formhandler contains this finisher:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.value = orderid } }

But after the successful redirect, the URL looks like this:

xxxxxx/zahlungen/?order=orderid

The Finisher does not pass the value, instead it sets the field name as a text. What am I doing wrong? I want it to look like this, for example:

xxxxxx/zahlungen/?order=12345

I have also included a finisher that writes the values into the database and this works flawlessly:

3.class = Finisher_DB 3.config{ table = tx_chilifhregistration key = uid fields { orderid.mapping = orderid

最满意答案

我认为在添加insertData时它可以满足您的需求:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.data = orderid order.insertData = 1 } }

如果它没有尝试直接使用order.value = GPvar:formhandler|orderid获取值。

I think it could work for your needs when you add insertData:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.data = orderid order.insertData = 1 } }

If it doesn't try to get the value directly with order.value = GPvar:formhandler|orderid.

TYPO3 Formhandler输入字段为additionalParam(TYPO3 Formhandler input field as additionalParam)

我目前正在构建一个注册系统,通过重定向将应用程序进程(Formhandler)与支付流程(自定义扩展)连接起来。

作为此连接的一部分,我想通过GET参数将值从Formhandler传递到我的自定义扩展。 Formhandler模​​板包含此值的隐藏字段,该值由JavaScript设置:

<input type="hidden" name="formhandler[orderid]" id="orderid" value="###value_orderid###" />

Formhandler的TypoScript包含这个终结器:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.value = orderid } }

但是在成功重定向之后,URL看起来像这样:

xxxxxx/zahlungen/?order=orderid

整理器不传递值,而是将字段名称设置为文本。 我究竟做错了什么? 我希望它看起来像这样,例如:

xxxxxx/zahlungen/?order=12345

我还包括一个将值写入数据库的终结器,这可以完美地工作:

3.class = Finisher_DB 3.config{ table = tx_chilifhregistration key = uid fields { orderid.mapping = orderid

I am currently constructing a registration system that connects the application process (Formhandler) with the payment process (custom extension) via a redirect.

As a part of this connection, I want to pass a value from the Formhandler to my custom extension through a GET parameter. The Formhandler template contains a hidden field for this value, the value is set by JavaScript:

<input type="hidden" name="formhandler[orderid]" id="orderid" value="###value_orderid###" />

The TypoScript for the Formhandler contains this finisher:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.value = orderid } }

But after the successful redirect, the URL looks like this:

xxxxxx/zahlungen/?order=orderid

The Finisher does not pass the value, instead it sets the field name as a text. What am I doing wrong? I want it to look like this, for example:

xxxxxx/zahlungen/?order=12345

I have also included a finisher that writes the values into the database and this works flawlessly:

3.class = Finisher_DB 3.config{ table = tx_chilifhregistration key = uid fields { orderid.mapping = orderid

最满意答案

我认为在添加insertData时它可以满足您的需求:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.data = orderid order.insertData = 1 } }

如果它没有尝试直接使用order.value = GPvar:formhandler|orderid获取值。

I think it could work for your needs when you add insertData:

4.class = Tx_Formhandler_Finisher_Redirect 4.config { additionalParams { order = TEXT order.data = orderid order.insertData = 1 } }

If it doesn't try to get the value directly with order.value = GPvar:formhandler|orderid.