简体   繁体   English

Typo3基本标记?

[英]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 . 现在,您应该看到有关TYPO3TypoScript所做的操作的完整日志。

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 BrowserTemplate Analyzer

  1. What's the error message in the admin panel? 管理面板中的错误消息是什么?
  2. Did you add a static template? 您是否添加了静态模板?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM