TYPO3 - 使用TS在柔性成型或柔性成型的柔性成型
问题描述:
我想从表中的数据和PID在SQL查询动态设置运行此柔性成型的代码。TYPO3 - 使用TS在柔性成型或柔性成型的柔性成型
这可能吗?
<label>Selectbox from DB</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0"></numIndex>
<numIndex index="1"></numIndex>
</numIndex>
</items>
<foreign_table>tt_content</foreign_table>
<foreign_table_where>
AND tt_content.pid = 22 <<<< no good at all.... What to do?
</foreign_table_where>
</config>
任何这些将正常工作,如果仅仅是FF可以访问PID:
- PID设置为存储文件夹插件
- PID设置在TS
- PID集另一柔性成型字段(带重加载),然后在查询
BR使用。安德斯
答
“半”的答案是存储文件夹的pluin已经被插入到页面设置。该页面存储文件夹可以直接使用标记访问### STORAGE_PID ###
使用这条线上面的例子中:
<foreign_table_where>
AND tt_content.pid = ###STORAGE_PID###
</foreign_table_where>
但我还是想知道如何从柔性成型重用值像这样或从静态扩展模板设置TS:
<foreign_table_where>
AND tt_content.pid = FIELD:previousFieldInThisFlexformAvailableAfterReload
</foreign_table_where>