![](/img/trans.png)
[英]Typo3 8.7.15 Flexform: displayCond on field pages (record storage page)
[英]TYPO3 LIMIT from flexform field
我在flexform字段中插入max_item_to_display
並嘗試在我的SELECT query
獲取該值:
$maxDisplayItem = $this->_getFlexformConfig('max_item_to_display');
$dbResource = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', // SELECT
'tx_mageconnect_products', // FROM
'product_id IN ('.implode(',',$productIds).')
AND store_view = \''.$store.'\'
AND hidden = \'0\'
AND deleted = \'0\'
AND pid = \''.$pid.'\'', // WHERE
'product_id', // GROUP BY
'', // ORDER BY
'$maxDisplayItem' // LIMIT
);
max_item_to_display
的值在tt_content
表中,但以上代碼無效。
有什么建議嗎?
如果要在'$maxDisplayItem'
使用變量值,請不要使用單引號
使用不帶引號的$maxDisplayItem
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.