Select 在打字稿中使用一个变量;选择";
我试图找到一个Typo3网站的作者,然后我尝试用结果ID填充Typo3 select(typoscript)。 它以某种方式工作,但我不能使用lib-order变量作为另一个select的数据源 我试着用LOAD_寄存器或标记器进行环绕。但我认为这必须是一种在select中使用select结果或另一个“lib”结果的方法 这是我的密码:Select 在打字稿中使用一个变量;选择";,select,typo3,typoscript,typo3-7.6.x,Select,Typo3,Typoscript,Typo3 7.6.x,我试图找到一个Typo3网站的作者,然后我尝试用结果ID填充Typo3 select(typoscript)。 它以某种方式工作,但我不能使用lib-order变量作为另一个select的数据源 我试着用LOAD_寄存器或标记器进行环绕。但我认为这必须是一种在select中使用select结果或另一个“lib”结果的方法 这是我的密码: // Returns succsessfully "neuz8" and i can use this in fluid lib.author = TEXT l
// Returns succsessfully "neuz8" and i can use this in fluid
lib.author = TEXT
lib.author.data = page:author
lib.Authornavigation = CONTENT
lib.Authornavigation {
stdWrap.required = 1
table = be_users
select {
uidInList = 0
pidInList = root
selectFields = be_users.uid as id, be_users.realName as rn, be_users.profile_pid as prid
where = be_users.profile_pid != '0'
andWhere = be_users.realName={lib.author} // Is not working, why?
// I tryed: combinations of andWhere.data or lib.author.data,
// with and without {},
// with LOAD_REGISTER,
// with "markers",
//andWhere = be_users.realName='neuz8' < this works and returns "39", the correct ID
andWhere.wrap =
markers {
//author.data = {page:author}
}
}
renderObj = COA
renderObj {
10 = TEXT
10.field = prid
10.wrap2 = ###SPLITTER### |
}
stdWrap.split {
token = ###SPLITTER###
cObjNum = 1 |*| 2 |*| 1
1.current = 1
2.current = 1
2.wrap = |,
}
}
//成功返回“neuz8”,我可以在流体中使用它
lib.author=文本
lib.author.data=页面:作者
lib.Authornavigation=内容
自由航空{
stdWrap.required=1
表=be_用户
挑选{
uidInList=0
pidInList=根
选择fields=be\u users.uid作为id,be\u users.realName作为rn,be\u users.profile\u pid作为prid
其中=be\u users.profile\u pid!=“0”
andWhere=be\u users.realName={lib.author}//不工作,为什么?
//我尝试了:andWhere.data或lib.author.data的组合,
//有或没有{},
//使用LOAD_寄存器,
//用“记号笔”,
//andWhere=be_users.realName='neuz8'<此操作有效并返回“39”,即正确的ID
那包裹在哪里=
标记{
//author.data={page:author}
}
}
renderObj=COA
伦德罗布{
10=文本
10.field=prid
10.wrap2=#########|
}
stdWrap.split{
令牌=###拆分器###
cObjNum=1 |*| 2 |*| 1
1.电流=1
2.电流=1
2.wrap=|,
}
}
这应该行得通
替换
// andWhere = be_users.realName={lib.author} // Is not working, why?
与
andWhere=be\u用户。realName=
andWhere.postObject
您可以尝试选择。标记:
page.60 = CONTENT
page.60 {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
orderBy = ###sortfield###
markers {
whatever.data = GP:first
sortfield.value = sor
sortfield.wrap = |ting
}
}
}
(请参阅零件标记)此网站仅为英文版。谢谢,此网站正在运行。你能解释一下我是如何一个人发现这样的事情的吗?:D呃-好的观点-在我这方面,这只是一个很长的打字记录,经历了艰难的过程-还有很多好奇心和耐心。。。
page.60 = CONTENT
page.60 {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
orderBy = ###sortfield###
markers {
whatever.data = GP:first
sortfield.value = sor
sortfield.wrap = |ting
}
}
}