[英]Typo3 basic markers?
I have this typoscript: 我有这个打字稿:
page = PAGE
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = fileadmin/templates/index.html
page.10.marks{
# Marker TITLE
TITLE = TEXT
TITLE.field = title
}
And in my template: 在我的模板中:
<html>
<head>
<title>Here goes the title</title>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="headertitle">###TITLE###</div>
</body>
</html>
Any idea why this wouldn't work? 知道为什么这行不通吗? I mean I see the template on page show, but instead of title I get ###TITLE### shown
我的意思是我看到页面显示的模板,但是显示的是### TITLE ###,而不是标题
Activate the admin panel
with config.admPanel = 1
at the very top of your TypoScript
. 在
TypoScript
的最顶部使用config.admPanel = 1
激活admin panel
。 This will put a small box at the lower left part of your frontend page. 这将在前端页面的左下方放置一个小框。
Then open the admin panel
and open the TypoScript
subpart. 然后打开
admin panel
并打开TypoScript
子部分。 Check all checkboxes except Explain SELECT queries
and click update. 选中“
Explain SELECT queries
以外的所有复选框,然后单击“更新”。 You should now see a full log on what TYPO3
is doing with your TypoScript
. 现在,您应该看到有关
TYPO3
对TypoScript
所做的操作的完整日志。
Another thing to check: Did you maybe accidentally add the TypoScript
to the constant
section instead of the setup
section? 要检查的另一件事:您是否可能不小心将
TypoScript
添加到了constant
部分而不是setup
部分中? Please verify with the TS Object Browser
or the Template Analyzer
. 请使用
TS Object Browser
或Template Analyzer
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.