我想用表中的数据和SQL查询集中的PID动态地运行这个flexform代码。
这有可能吗?
<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,那么其中任何一个都可以正常工作:
BR.安德斯
发布于 2013-03-05 15:04:38
“半”答案是为插入插件的页面设置的存储文件夹。可以使用标记###STORAGE_PID###直接访问页面存储文件夹。
在上面的示例中使用这一行:
<foreign_table_where>
AND tt_content.pid = ###STORAGE_PID###
</foreign_table_where>但是,我仍然想知道如何重用这样的flexform或静态扩展模板中的TS设置的值:
<foreign_table_where>
AND tt_content.pid = FIELD:previousFieldInThisFlexformAvailableAfterReload
</foreign_table_where>https://stackoverflow.com/questions/15221862
复制相似问题