如何在打字稿中将内容幻灯片与 RECORD 对象一起使用
在我的一个网站上,如果内容列为空(在本例中:colPos=3
/ Border),内容(视频)将从上面的级别继承。
为了创建输出,我使用
temp.myObject < styles.content.getBorder
temp.myObject {
slide = -1
}
Easy,因为这取自 CONTENT 对象,并且 slide
是一个内置函数。
由于我们的系统设置,我需要对 RECORDS 对象执行类似的操作。但是下面的打字稿不起作用 - 它会生成空输出:
temp.myObject = RECORDS
temp.myObject {
tables = tt_content
source.cObject = CONTENT
source.cObject {
slide = -1
table = tt_content
renderObj = TEXT
renderObj.field = uid
}
}
此片段也会发生同样的情况:
temp.myObject = RECORDS
temp.myObject {
tables = tt_content
source.cObject = CONTENT
source.cObject {
table = tt_content
select {
pidInList.data = leveluid:-1,slide
}
renderObj = TEXT
renderObj.field = uid
}
}
[注意:上面复杂的 source
部分提供了我们从中提取图像文件的内容元素的 ID来自flexform xml]
有人可以帮助我实现基于RECORDS对象的contentslide解决方案吗? 如果理解问题有任何问题,请提问。
On one of my sites, content (Videos) is inherited from the levels above if the content column is empty (in this case: colPos=3
/ Border)
To create the output, I use
temp.myObject < styles.content.getBorder
temp.myObject {
slide = -1
}
Easy, because this is taken from a CONTENT object and slide
is a built-in function.
Due to our system setup I need to do something similar with the RECORDS object. But the following typoscript doesn't work - it generates empty output:
temp.myObject = RECORDS
temp.myObject {
tables = tt_content
source.cObject = CONTENT
source.cObject {
slide = -1
table = tt_content
renderObj = TEXT
renderObj.field = uid
}
}
The same happens with this snippet:
temp.myObject = RECORDS
temp.myObject {
tables = tt_content
source.cObject = CONTENT
source.cObject {
table = tt_content
select {
pidInList.data = leveluid:-1,slide
}
renderObj = TEXT
renderObj.field = uid
}
}
[Note: The complicated source
part above provides the ID of a content element from where we extract an image file from the flexform xml]
Can somebody help me to achieve a contentslide solution based on the RECORDS object?
If there are any problems understanding the questions, please ask.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CONTENT 对象没有“幻灯片”属性。
尝试使用您的 RECORDS 对象的 stdWrap.ifEmpty.cObject... 来模拟幻灯片,因为它可以用于 TYPO3 3.8.x 的幻灯片模拟。
TYPO3 wiki 上的示例:
http://wiki.typo3.org/wiki/Content_Slide# Content_Sliding_in_TYPO3_3.8.x_by_TS_only
CONTENT object doesn't have "slide" property.
Try simulate slide using stdWrap.ifEmpty.cObject.... for Your RECORDS object, as it could be done for slide simulation for TYPO3 3.8.x.
Example on TYPO3 wiki :
http://wiki.typo3.org/wiki/Content_Slide#Content_Sliding_in_TYPO3_3.8.x_by_TS_only