How the get the parent element of a FCE in Fluid Powered TYPO3

柔情痞子 提交于 2019-12-23 01:20:28

问题


Is there a possiblity to get the parent element of the current element.

Fx: I have a two column FCE and in this two column FCE I will place a custom image element. For performance reasones I would like to render the image only as big as necessary. If the special image elememt is in a two column element the image can be smaller as it must be outside of the two column element.

Until now I did not find a way to solve this problem.


回答1:


Id of parent record is always stored in {record.tx_flux_parent} - however, you may need to manually transfer the {record} variable since this does not happen automatically.



来源:https://stackoverflow.com/questions/24690804/how-the-get-the-parent-element-of-a-fce-in-fluid-powered-typo3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!