[英]How can i set the Object Path in typo3 from db
I'm trying to find a way in typoScript to render a view, from its name that comes from the db... 我试图在typoScript中找到一种方法来渲染视图,该视图的名称来自db ...
Currently, I now do it in the Object path option in typo3 control Panel... I wonder if I can get this data from the db 当前,我现在在typo3控制面板的“对象路径”选项中执行此操作...我想知道是否可以从数据库获取此数据
Any Ideas? 有任何想法吗?
For the first part, getting any value from the db and render it, try this: 对于第一部分,从数据库获取任何值并进行渲染,请尝试以下操作:
lib.customValue = CONTENT
lib.customValue {
table = tx_any_table
select {
pidInList = 999
where = some_field = 999
max = 1
}
renderObj >
renderObj = COA_INT
renderObj {
10 = TEXT
10.field = any_field
}
}
But I assume that the string you now have represents a (part of a) typoscript object , and you need the value of this object to be rendered? 但是我假设您现在拥有的字符串代表一个(一个) 拼写对象 ,并且您需要呈现该对象的值? Hope I (or someone else) can add some more info for that soon. 希望我(或其他人)能尽快添加更多信息。
I finally find a typo3 extension 我终于找到了typo3扩展名
TypoScript code (typoscript_code)
that allow me to render a t3 from the database. TypoScript code (typoscript_code)
,允许我从数据库渲染t3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.