[英]Typo3 8.7.x / Typoscript: Get page uid of the TEXT which was found
How can I get the uid of the found TEXT? 如何获取找到的TEXT的uid?
test = TEXT
test {
data = levelfield:-1, tx_myext_myfield, slide
required = 1
wrap = |
}
There are additional fields tx_myext_myfield2, tx_myext_myfield3,.. which I want to use, but I don't know how to get them with slide functionality. 我想使用其他字段tx_myext_myfield2,tx_myext_myfield3 ..,但是我不知道如何使用幻灯片功能。
To make use of the levelfield feature you have to add these fields to the so called "rootline fields" using 要使用levelfield功能,您必须使用以下命令将这些字段添加到所谓的“ rootline字段”中
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields']
See https://docs.typo3.org/typo3cms/TyposcriptReference/singlehtml/Index.html#levelfield 参见https://docs.typo3.org/typo3cms/TyposcriptReference/singlehtml/Index.html#levelfield
Since you are getting just the value of a single field here, you can not access the other values though. 由于您在这里仅获得单个字段的值,因此您无法访问其他值。 If you want to access these values, you will need to fetch a whole record instead, which could be done using the cObjects
如果要访问这些值,则需要获取整个记录,这可以使用cObjects完成。
CONTENT
https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Content/Index.html https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Content/Index.html
or 要么
RECORDS
https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Records/Index.html https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Records/Index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.