0

我尝试获取 Typo3 网站的作者,然后我尝试使用生成的 ID 填充 Typo3 选择(打字稿)。它以某种方式工作,但我不能使用 lib oder 变量作为另一个选择的数据源

我试图用 LOAD_REGISTER 或标记来玩 arround。但我认为它必须是一种在选择中使用选择结果或另一个“lib”结果的方法。

这是我的代码:

// 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 = |,
    }
}
4

2 回答 2

0

这应该工作

代替

// andWhere =  be_users.realName={lib.author} // Is not working, why?

andWhere = be_users.realName= 
andWhere.postCObject < temp.author
于 2016-02-15T16:49:49.270 回答
0

你可以试试 select.markers:

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
    }
  }
}

文档 » 函数 » 选择(见部分标记)

于 2016-02-16T08:50:46.843 回答