I have a onepage-layout and every page from the backend is a section of this frontend-page. Every section/backendpage has its own layout. The following script choose the correct layout:
20 = FLUIDTEMPLATE
20 {
file.cObject = CASE
file.cObject {
key.field = uid
5 = TEXT
5.value = fileadmin/template/green.html
6 = TEXT
6.value = fileadmin/template/blue.html
default = TEXT
default.value = fileadmin/template/default.html
}
This works fine. Now I need the correct content in every section. I tried the following:
variables {
content < styles.content.get
content{
select {
pidInList = 5
#pidInList = uid
where = colPos= 0
#where = colPos={field: colPos}
orderBy = sorting
}
}
}
Setting pidInList to a static value like 5 works. But I need the correct content to the choosen layout-file. Why is uid not working?
Here is the complete block:
lib.sectionContent = HMENU
lib.sectionContent {
1 = TMENU
1 {
NO = 1
NO {
doNotLinkIt = 1
stdWrap >
stdWrap {
cObject = COA
cObject {
if.value = 5
if.equals.field = doktype
if.negate = 1
10 < temp.titleSectionId
10.wrap = <div id="|">
20 = FLUIDTEMPLATE
20 {
file.cObject = CASE
file.cObject {
key.field = uid
5 = TEXT
5.value = fileadmin/template/green.html
6 = TEXT
6.value = fileadmin/template/blue.html
default = TEXT
default.value = fileadmin/template/default.html
}
variables {
content < styles.content.get
content{
select {
pidInList.field = uid
where = colPos= 0
#where = colPos={field: colPos}
orderBy = sorting
}
}
}
}
30 = TEXT
30 {
wrap = </div>
}
}
}
}
}
}
This one always choose the default value :-(
variables {
content < styles.content.get
content{
select {
pidInList.cObject = CASE
pidInList.cObject {
key.field = uid
5 = TEXT
5.value = 5
default = TEXT
default.value = 10
}
}
}
}