Skip to content

Commit ef5054c

Browse files
authored
Merge branch 'main' into feature/remove-legacy-installation-extension
2 parents c9d044e + 631a027 commit ef5054c

File tree

11 files changed

+451
-24
lines changed

11 files changed

+451
-24
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
:navigation-title: Cache
2+
.. include:: /Includes.rst.txt
3+
4+
.. _cache:
5+
6+
=====
7+
Cache
8+
=====
9+
10+
.. _what-is-caching:
11+
12+
What is caching in TYPO3?
13+
=========================
14+
15+
Caching is a process TYPO3 uses to temporarily store content and data to help
16+
your website load faster and perform efficiently. Instead of regenerating
17+
every page or content piece each time a visitor loads it, TYPO3 saves a
18+
"cached" version. This way, the system can quickly serve this saved content,
19+
reducing the load on the server and speeding up the response time for users.
20+
21+
.. _how-to-clear-cache:
22+
23+
How to clear caches in TYPO3?
24+
=============================
25+
26+
When you update content or make configuration changes, TYPO3 sometimes needs a
27+
cache refresh to reflect these updates on the live site.
28+
Here are the main ways to clear caches in TYPO3 13:
29+
30+
* Clearing Cache in the backend:
31+
32+
* In the Backend, look for the Clear cache icon, which resembles a
33+
lightning bolt. You can find this in the top toolbar.
34+
35+
.. figure:: /Images/ManualScreenshots/ClearCache/Toolbar.png
36+
37+
* For deeper cache management, you can use the Install Tool:
38+
In :guilabel:`Admin Tools > Maintenance` you can find the option to
39+
clear all caches. This will refresh everything, including caches
40+
that aren't typically cleared through the backend toolbar.backend
41+
42+
* Clearing caches via Command Line
43+
44+
For advanced users or developers, caches can also be cleared from
45+
the command line:
46+
47+
.. code-block:: bash
48+
49+
ddev typo3 cache:flush
50+
51+
.. _when-to-clear-cache:
52+
53+
When should you clear caches?
54+
=============================
55+
56+
* If new content, images or text doesn't show up right away.
57+
* When adjusting templates, extensions or system settings.
58+
* While working on custom code, plugins or during site updates.

Documentation/Concepts/Index.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ TYPO3 Concepts
5757
.. card-footer:: :ref:`Extensions <concepts-extensions>`
5858
:button-style: btn btn-secondary stretched-link
5959

60+
.. card:: Cache
61+
62+
The TYPO3 cache temporarily stores website data to improve loading
63+
speed and reduce server load by delivering saved versions
64+
of content to visitors.
65+
66+
.. card-footer:: :ref:`Cache <cache>`
67+
:button-style: btn btn-secondary stretched-link
68+
69+
.. card:: Project Structure
70+
71+
This chapter describes the structure of a TYPO3 project.
72+
73+
.. card-footer:: :ref:`Project Structure <project-structure>`
74+
:button-style: btn btn-secondary stretched-link
75+
6076
.. toctree::
6177
:caption: Topics
6278
:glob:
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
:navigation-title: Project Structure
2+
.. include:: /Includes.rst.txt
3+
4+
.. _project-structure:
5+
6+
=================
7+
Project structure
8+
=================
9+
10+
The following introduction refers to a Composer-based installation.
11+
12+
.. directory-tree::
13+
:level: 2
14+
:show-file-icons: true
15+
16+
17+
* config
18+
19+
* sites
20+
* system
21+
22+
* packages
23+
24+
* public/
25+
26+
* _assets/
27+
* fileadmin/
28+
* typo3/
29+
* typo3temp/
30+
31+
* assets/
32+
33+
* var/
34+
35+
* cache/
36+
* labels/
37+
* log
38+
39+
* vendor
40+
* composer.json
41+
* composer.lock
42+
43+
.. _files-and-directories:
44+
45+
Files and directories on project level
46+
======================================
47+
48+
The :file:`composer.json` contains the requirements for the TYPO3 installation and
49+
the :file:`composer.lock` contains information about the concrete installed versions
50+
of each package. For further information see
51+
:ref:`here <t3coreapi:files-composer-json>`.
52+
53+
.. _directory-config:
54+
55+
:file:`config/`
56+
~~~~~~~~~~~~~~
57+
This directory contains installation-wide configuration.
58+
59+
.. _directory-config-sites:
60+
61+
:file:`config/sites/`
62+
~~~~~~~~~~~~~~~~~~~~~
63+
64+
The folder :file:`config/sites/` contains subfolders for each site.
65+
66+
The following files are processed:
67+
68+
* :file:`config.yaml` for the :ref:`site configuration <t3coreapi:sitehandling>`
69+
* :file:`settings.yaml` for the :ref:`site settings <t3coreapi:sitehandling-settings>`
70+
71+
.. _directory-config-system:
72+
73+
:file:`config/system/`
74+
~~~~~~~~~~~~~~~~~~~~~~
75+
76+
The folder :file:`config/system/` contains the installation-wide
77+
78+
* :file:`settings.php`: :ref:`Configuration <t3coreapi:typo3ConfVars-localConfiguration>` written
79+
by the :guilabel:`Admin Tools > Settings` backend module
80+
* :file:`additional.php`: :ref:`Manually created file <t3coreapi:typo3ConfVars-additionalConfiguration>`
81+
which can override settings from :file:`settings.php` file
82+
83+
.. _directory-packages:
84+
85+
:file:`packages/`
86+
-----------------
87+
88+
.. todo: Link sitepackage
89+
90+
Each website running on TYPO3 should have a site package - a specialized an
91+
:ref:`extension <t3start:extensions_index>` that contains all the templates,
92+
styles, images and other assets required for the theme.
93+
94+
The sitepackage is typically stored locally and then linked inte the :file:`vendor`
95+
folder via a symlink. Many projects also require custom extensions,
96+
which can also be stored in this location.
97+
98+
.. _directory-public:
99+
100+
:file:`public/`
101+
---------------
102+
103+
This folder contains all files that are publicly available. Your webserver's
104+
web root **must** point here.
105+
106+
This folder contains the main entry script :file:`index.php` created by Composer
107+
and might contain publicly available files like a :file:`robots.txt` and
108+
files needed for the server configuration like a :file:`.htaccess`.
109+
110+
.. _directory-public-fileadmin:
111+
112+
:file:`public/fileadmin/`
113+
~~~~~~~~~~~~~~~~~~~~~~~~~
114+
115+
This is a directory in which editors store files. Typically images,
116+
PDFs or video files appear in this directory and/or its subdirectories.
117+
118+
.. _directory-public-typo3:
119+
120+
:file:`public/typo3/`
121+
~~~~~~~~~~~~~~~~~~~~~
122+
123+
This directory contains the two PHP files for accessing the TYPO3
124+
backend (:file:`typo3/index.php`) and install tool (:file:`typo3/install.php`).
125+
126+
.. _directory-var:
127+
128+
:file:`var/`
129+
------------
130+
131+
Directory for temporary files that contains private files (e.g.
132+
cache and logs files) and should not be publicly available.
133+
134+
.. _directory-var-log:
135+
136+
:file:`var/log/`
137+
~~~~~~~~~~~~~~~~
138+
139+
This directory contains log files like the
140+
TYPO3 log, the deprecations log and logs generated by extensions.
141+
142+
.. _directory-vendor:
143+
144+
:file:`vendor/`
145+
---------------
146+
147+
In this directory all extensions (system, third-party and custom) are installed
148+
as Composer packages.
149+
150+
For more information see :ref:`here <t3coreapi:directory-structure>`.

Documentation/Concepts/TypoScript/Index.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ A minimal page created by pure TypoScript
1010
TypoScript is the basic configuration language used to configure the frontend
1111
output of a page in TYPO3.
1212

13-
You can find detailed information about
14-
:ref:`TypoScript <t3coreapi:typoscript-syntax-syntax>` and its syntax in
15-
the reference "TYPO3 Explained".
13+
Learn more about TypoScript in
14+
:ref:`Getting started: A quick introduction into TypoScript <t3tsref:guide>` in
15+
the :ref:`TypoScript Reference <t3tsref:start>`.
1616

17-
The semantics of TypoScript settings are listed in the
17+
You can find detailed information about the
18+
:ref:`TypoScript Syntax<t3tsref:typoscript-syntax>` and a listing of all objects
19+
and with their properties and functions in the
1820
:ref:`TypoScript Reference <t3tsref:start>`.
1921

2022
.. _typoscript-hello-world:
@@ -37,11 +39,11 @@ containing your :ref:`site configuration <site-configuration>`.
3739
:linenos:
3840

3941
#. Is a comment. See the Syntax of comments in TypoScript:
40-
:ref:`Comments <t3coreapi:typoscript-syntax-syntax-comment-blocks>`.
42+
:ref:`Comments <t3tsref:typoscript-syntax-syntax-comment-blocks>`.
4143
#. Assigns a top level object of type :ref:`PAGE <t3tsref:object-type-page>`
4244
to a variable called `page`.
4345
#. The `page` gets more options in this block. See the
44-
:ref:`Blocks in the TypoScript syntax <t3coreapi:typoscript-syntax-syntax-curly-brackets>`.
46+
:ref:`Blocks in the TypoScript syntax <t3tsref:typoscript-syntax-syntax-curly-brackets>`.
4547
#. Another comment.
4648
#. Assigns a content object (also called "cObject") of type
4749
:ref:`TEXT <t3tsref:cobj-text>` to
@@ -114,7 +116,7 @@ Wrap "Hello, world." in p-tags
114116

115117
4. As we now have several options for :ref:`TEXT <t3tsref:cobj-text>` object
116118
with path `page.10`, we switch to the
117-
:ref:`block syntax <t3coreapi:typoscript-syntax-syntax-curly-brackets>` here.
119+
:ref:`block syntax <t3tsref:typoscript-syntax-syntax-curly-brackets>` here.
118120
5. Assign the text to the :confval:`value <t3tsref:text-value>` property of
119121
the TEXT object.
120122
6. We use the :confval:`stdWrap <t3tsref:text-stdwrap>` property of the TEXT
@@ -153,7 +155,7 @@ Display the title of the current page on top
153155
:confval:`index number 5 <t3tsref:page-array>` of `page`. As the index is
154156
smaller than the index 10 of the TEXT object containing the text
155157
"Hello World", it is displayed before the other object.
156-
4. Uses the :ref:`block syntax <t3coreapi:typoscript-syntax-syntax-curly-brackets>`
158+
4. Uses the :ref:`block syntax <t3tsref:typoscript-syntax-syntax-curly-brackets>`
157159
to apply properties to the TEXT object.
158160
5. Uses the stdWrap property :confval:`field <t3tsref:stdwrap-field>` to fetch
159161
the field `title` from the :ref:`database record <t3coreapi:database-records>`
@@ -168,5 +170,3 @@ Display the title of the current page on top
168170

169171
.. literalinclude:: _page-title_reverse.typoscript
170172
:caption: config/sites/main/setup.typoscript
171-
172-
.. todo: Add more basic TypoScript examples
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.. include:: /Includes.rst.txt
2+
3+
.. _create-own-extension:
4+
5+
=========================
6+
Create your own extension
7+
=========================
8+
9+
In TYPO3, extensions allow you to expand the system’s functionality by
10+
adding new features and customizing behavior according to your project's needs.
11+
12+
Prerequisites
13+
=============
14+
15+
* A working :ref:`TYPO3 installation <t3start:installation-ddev-tutorial>`
16+
using Composer.
17+
* Familiarity with Composer
18+
* Basic knowledge of PHP and TYPO3 development concepts
19+
* CLI access to your TYPO3 instance
20+
21+
.. _why-create-extension:
22+
23+
Why create an extension?
24+
========================
25+
26+
Creating an extension allows you to:
27+
28+
* Add custom features and modules to TYPO3
29+
* Share functionality across multiple TYPO3 instances
30+
31+
32+
.. _how-to-create-extension:
33+
34+
How to start developing an extension
35+
====================================
36+
37+
Developing an extension involves several steps, from setting up the extension
38+
structure to implementing your custom functionality.
39+
To guide you through this process, TYPO3 provides a detailed tutorial on
40+
extension development.
41+
42+
Please refer to this :ref:`link <t3coreapi:extension-tutorials>` for
43+
comprehensive, step-by-step instructions on how to create an extension.
44+
45+
46+
.. _basic-steps:
47+
48+
Basic steps to create an extension
49+
==================================
50+
51+
* Define the purpose of your extension.
52+
53+
Determine what specific functionality or feature you want to add to TYPO3
54+
55+
* Create the extension skeleton
56+
57+
Set up the basic structure for your extension.
58+
59+
* Implement the desired features
60+
61+
Add the necessary PHP classes, TypoScript configuration and templates
62+
that will bring your extension's functionality to life.
63+
64+
* Register the extension in TYPO3
65+
66+
Register your extension so TYPO3 can recognize it. This includes adding it
67+
to your instance's configuration.
68+
69+
* Test and refine
70+
71+
Test your extension to ensure it works as expected and make any needed
72+
adjustments.

0 commit comments

Comments
 (0)