我想显示我网站属性中的字段
I want to Display fields from my site properties
(mask extension - backendlayout) - 但只会显示图像。
相同的代码已经可以用于菜单。但是如果没有菜单,它将不会显示我在站点 属性 上的标题。字段名称正确!
lib.blog_header = COA
lib.blog_header {
20 = COA
20{
wrap = <div class="blog_header inner"><div class="row">|</div></div>
5 = TEXT
5.wrap = <span class="titel">|</span>
5.value.field = tx_mask_blog_titel
10 = FILES
10 {
references {
table = pages
uid.data = field:uid
fieldName = tx_mask_blog_image
}
begin = 0
maxItems = 1
renderObj = IMAGE
renderObj {
wrap = <div class="teaser-img col-md-6">|</div>
altText.data = file:current:alternative
titleText.data = file:current:title
params = class="image-embed-item lazy"
file.width = 500c
file.height = 400c
layoutKey = picturetag
file.import.data = file:current:publicUrl
file.crop.data = file:current:crop
}
}
}
}
(mask extension - backendlayout) - 但只会显示图像。 相同的代码已经可以用于菜单。但是如果没有菜单,它将不会显示我在站点 属性 上的标题。字段名称正确!
lib.blog_header = COA
lib.blog_header {
20 = COA
20{
wrap = <div class="blog_header inner"><div class="row">|</div></div>
5 = TEXT
5.wrap = <span class="titel">|</span>
5.value.field = tx_mask_blog_titel
10 = FILES
10 {
references {
table = pages
uid.data = field:uid
fieldName = tx_mask_blog_image
}
begin = 0
maxItems = 1
renderObj = IMAGE
renderObj {
wrap = <div class="teaser-img col-md-6">|</div>
altText.data = file:current:alternative
titleText.data = file:current:title
params = class="image-embed-item lazy"
file.width = 500c
file.height = 400c
layoutKey = picturetag
file.import.data = file:current:publicUrl
file.crop.data = file:current:crop
}
}
}
}