Page Tree:
The hierarchical structure that organizes website content. Each page in the tree represents a page on the website.
Browse / TYPO3 CMS Cheat Sheet
TYPO3 CMS Cheat Sheet
A quick reference guide for TYPO3 CMS, covering essential concepts, TypoScript, Fluid templating, and common tasks for developers and editors.
TYPO3 Fundamentals
Core Concepts
|
|
|
Content Elements (CEs): |
|
TypoScript: |
|
Fluid: |
|
Extensions: |
|
Backend Layouts: |
Key Directories
|
|
Contains configuration files, including |
|
|
Temporary files and cache. Clear this directory to resolve many common issues. |
|
|
Default location for uploaded files (images, documents, etc.). Can be configured. |
|
|
Location for extensions installed via composer. |
|
|
Default web root. Where index.php and other public files are located. (May vary depending on server setup) |
Backend Navigation
|
Page Module: Used to manage the page tree and content elements on a specific page. |
|
List Module: Provides a detailed view of all records in a table, allowing for filtering and editing. |
|
Filelist Module: Manages files and folders in the file system. |
|
Template Module: Edit TypoScript templates. |
|
Extension Manager: Install, configure, and manage extensions. |
|
Admin Tools: Various admin tools like clearing cache, system information, install tool etc. |
TypoScript Essentials
Basic Syntax
|
|
Assigns a new PAGE object. |
|
|
Assigns a TEXT object to the property |
|
|
Sets the |
|
|
Includes TypoScript from an external file. |
|
|
Conditional statement: Checks if the current page ID is 1. |
|
|
Creates a menu object called ‘myMenu’. |
Common Objects
|
PAGE: |
|
TEXT: |
|
IMAGE: |
|
CONTENT: |
|
HMENU: |
|
USER_INT: |
Example Configuration
|
|
This TypoScript configuration creates a basic HTML page with a heading ‘Hello World’ and includes a CSS file. |
Fluid Templating
Basic Syntax
|
<f:if condition=”{variable}”>…</f:if> |
Conditional statement. Renders content only if the condition is true. |
|
<f:for each=”{items}” as=“item”>…</f:for> |
Looping construct. Iterates over an array or object. |
|
<f:link.page pageUid=“123”>Link to Page</f:link.page> |
Creates a link to a TYPO3 page with UID 123. |
|
<f:translate key=“LLL:EXT:my_extension/Resources/Private/Language/locallang.xlf:my_label” /> |
Translates a label using localization files. |
|
<f:format.date format=”%d.%m.%Y”>{date}</f:format.date> |
Formats a date variable. |
|
{variable -> f:format.html()} |
Formats a variable to HTML, escaping potentially dangerous characters. |
ViewHelpers
|
f:if: Conditional rendering. |
|
f:for: Looping through data. |
|
f:link.page: Creating internal links. |
|
f:link.external: Creating external links. |
|
f:translate: Localizing text. |
|
f:format.*: Various formatting ViewHelpers (date, number, html, etc.). |
Example Template
|
|
This example demonstrates a basic Fluid template with a layout, a section for the main content, and a loop that renders content elements using |
Common Tasks
Clearing Cache
|
TYPO3 caches content and configuration for performance. Clearing the cache is often necessary after making changes. |
|
Backend: |
|
Install Tool: |
|
TypoScript: |
|
Command-line: |
Working with Content Elements
|
Adding a CE |
In the Page module, click the ‘+’ icon in the content area to add a new content element. |
|
Editing a CE |
Click on a content element in the Page module to edit its properties. |
|
Moving a CE |
Drag and drop content elements within the content area to change their order. Alternatively use the up/down arrows. |
|
Deleting a CE |
Click the delete icon (trash can) on a content element to remove it. |
|
Hiding/Disabling a CE |
Use the enable/disable icon(eye icon) to hide a CE. |
Extension Management
|
Installing an extension: |
|
Configuring an extension: |
|
Updating an extension: |
|
Uninstalling an extension: |