简体   繁体   English

Typo3 8.7.x / Typoscript:获取找到的TEXT的页面uid

[英]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.

相关问题 TYPO3 8.7.x / Typoscript:扩展ajax调用,从插入特定页面的插件中获取设置 - TYPO3 8.7.x / Typoscript: Extension ajax call, get settings from plugin inserted on specific page Typo3 8.7.x / Typoscript:无法在表格页面中添加字段 - Typo3 8.7.x / Typoscript: Can't get added field in table pages Typo3 8.7.x / Typoscript:无法从根页获取数据,幻灯片在根页之前停止 - Typo3 8.7.x / Typoscript: Can't get data from rootpage, slide stops before rootpage Typo3 8.7.x / Extbase:如何获取页面的 sys_category - Typo3 8.7.x / Extbase: How to get the sys_category of a page Typo3 8.7.x / Extbase / Typoscript:使用RECORDS时如何移除锚定包裹 - Typo3 8.7.x / Extbase / Typoscript: How to remove the anchor wrap when using RECORDS Typo3 8.7.x / Extbase / Typoscript:如何设置用于将新的自定义对象添加到tt_content(mm关系)的storagePid - Typo3 8.7.x / Extbase / Typoscript: How to set the storagePid for adding new custom object to tt_content (mm relation) Typo3 8.7.x / Extbase:在自己的扩展中扩展RealUrl - Typo3 8.7.x / Extbase: Extend RealUrl in own extension Typo3 8.7.x / Extbase / Realurl:为生成的html页面添加前缀 - Typo3 8.7.x / Extbase / Realurl: Add prefix for generated html page TYPO3 8.7.x / Extbase:如何获取flexform选择树视图值? - TYPO3 8.7.x / Extbase: How to get flexform select treeview values? TYPO3 8.7 使用 Flexform uid 进行查询排序 - TYPO3 8.7 Query Sorting with Flexform uid´s
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM