简体   繁体   中英

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

Activate the admin panel with config.admPanel = 1 at the very top of your TypoScript . 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. Check all checkboxes except Explain SELECT queries and click update. You should now see a full log on what TYPO3 is doing with your TypoScript .

Another thing to check: Did you maybe accidentally add the TypoScript to the constant section instead of the setup section? Please verify with the TS Object Browser or the Template Analyzer .

  1. What's the error message in the admin panel?
  2. Did you add a static template?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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