我正在为我的网站项目使用流体模板,并希望从我添加的 pages 表中获取文件引用。但是,为什么不能通过变量获取未渲染的文件引用?
//Not working
page.10 = FLUIDTEMPLATE
page.10.variables {
test = FILES
test {
references {
table = pages
uid.data = page:uid
fieldName = tx_myext_myfield
}
}
}
//but its working with adding
page.10.variables.test {
renderObj = IMAGE
renderObj {
file.import.dataWrap = {file:current:storage}:{file:current:identifier}
altText.data = file:current:title
}
}