Loading...
Loading...
Compare original and translation side by side
TYPO3 API First: Always use TYPO3's built-in APIs, core features, and established conventions before creating custom implementations. Do not reinvent what TYPO3 already provides. Always verify that the APIs and methods you use exist and are not deprecated in your target TYPO3 version (v13 or v14) by checking the official TYPO3 documentation.
TYPO3 API优先原则: 在创建自定义实现之前,请始终使用TYPO3的内置API、核心功能和既定约定。不要重复造TYPO3已有的轮子。请务必通过官方TYPO3文档验证你使用的API和方法在目标TYPO3版本(v13或v14)中存在且未被弃用。
Documentation/Documentation/**/*.rstconfvalversionaddedcard-gridtabsDocumentation/Documentation/**/*.rstconfvalversionaddedcard-gridtabsDocumentation/
├── Index.rst # Main entry point
├── guides.xml # Configuration file
├── Introduction/
│ └── Index.rst
├── Installation/
│ └── Index.rst
├── Configuration/
│ └── Index.rst
├── Usage/
│ └── Index.rst
├── Developer/
│ └── Index.rst
└── Images/
└── screenshot.pngDocumentation/
├── Index.rst # 主入口文件
├── guides.xml # 配置文件
├── Introduction/
│ └── Index.rst
├── Installation/
│ └── Index.rst
├── Configuration/
│ └── Index.rst
├── Usage/
│ └── Index.rst
├── Developer/
│ └── Index.rst
└── Images/
└── screenshot.pngDocumentation/docker run --rm --pull always -v $(pwd):/project -it \
ghcr.io/typo3-documentation/render-guides:latest initrstDocumentation/docker run --rm --pull always -v $(pwd):/project -it \
ghcr.io/typo3-documentation/render-guides:latest initrst<?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides https://docs.typo3.org/render-guides/guides.xsd">
<project title="My Extension"/>
<extension name="my_extension"/>
</guides><?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides https://docs.typo3.org/render-guides/guides.xsd">
<project title="My Extension"/>
<extension name="my_extension"/>
</guides><?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides https://docs.typo3.org/render-guides/guides.xsd">
<project title="My Extension" version="1.0.0"/>
<extension name="my_extension"/>
<inventory id="t3coreapi" url="https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/"/>
<settings>
<setting name="edit_on_github" value="https://github.com/vendor/my-extension/edit/main/Documentation/"/>
<setting name="edit_on_github_branch" value="main"/>
</settings>
</guides><?xml version="1.0" encoding="UTF-8"?>
<guides xmlns="https://www.phpdoc.org/guides" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.phpdoc.org/guides https://docs.typo3.org/render-guides/guides.xsd">
<project title="My Extension" version="1.0.0"/>
<extension name="my_extension"/>
<inventory id="t3coreapi" url="https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/"/>
<settings>
<setting name="edit_on_github" value="https://github.com/vendor/my-extension/edit/main/Documentation/"/>
<setting name="edit_on_github_branch" value="main"/>
</settings>
</guides>==========
Page Title
==========
Section
=======
Subsection
----------
Subsubsection
~~~~~~~~~~~~~==========
页面标题
==========
章节
=======
子章节
----------
子子章节
~~~~~~~~~~~~~.. code-block:: php
:caption: Classes/Service/MyService.php
<?php
declare(strict_types=1);
namespace Vendor\MyExtension\Service;
final class MyService
{
// ...
}.. code-block:: php
:caption: Classes/Service/MyService.php
<?php
declare(strict_types=1);
namespace Vendor\MyExtension\Service;
final class MyService
{
// ...
}Use :php:`MyClass` for PHP references.
The file :file:`ext_localconf.php` is loaded automatically.
Click :guilabel:`Save` to apply changes.
Press :kbd:`Ctrl+S` to save.使用:php:`MyClass`引用PHP类。
文件:file:`ext_localconf.php`会自动加载。
点击:guilabel:`保存`以应用更改。
按:kbd:`Ctrl+S`保存。See :ref:`my-reference-label` for more information.
External link: `TYPO3 Documentation <https://docs.typo3.org/>`__
.. _my-reference-label:
Section with Reference
======================
This section can be referenced from anywhere.更多信息请参考:ref:`my-reference-label`。
外部链接:`TYPO3文档 <https://docs.typo3.org/>`__
.. _my-reference-label:
带引用的章节
======================
本章节可从任意位置引用。.. confval:: encryptionMethod
:name: ext-myext-encryptionMethod
:type: string
:default: 'aes-256-gcm'
:required: false
The encryption method to use for API keys.
Available options:
- ``aes-256-gcm`` (recommended)
- ``aes-256-cbc``.. confval:: encryptionMethod
:name: ext-myext-encryptionMethod
:type: string
:default: 'aes-256-gcm'
:required: false
用于API密钥的加密方式。
可用选项:
- ``aes-256-gcm``(推荐)
- ``aes-256-cbc``.. versionadded:: 2.0.0
This feature was added in version 2.0.0.
.. versionchanged:: 2.1.0
The default value was changed from ``false`` to ``true``.
.. deprecated:: 3.0.0
Use :php:`newMethod()` instead... versionadded:: 2.0.0
此功能在2.0.0版本中新增。
.. versionchanged:: 2.1.0
默认值从``false``改为``true``。
.. deprecated:: 3.0.0
请改用:php:`newMethod()`。.. note::
Background information users should know.
.. tip::
Helpful suggestion for better results.
.. warning::
Potential issue or data loss risk.
.. important::
Critical information that must not be missed... note::
用户需要了解的背景信息。
.. tip::
有助于获得更好结果的建议。
.. warning::
潜在问题或数据丢失风险。
.. important::
必须注意的关键信息。.. tabs::
.. group-tab:: Composer
Install via Composer:
.. code-block:: bash
composer require vendor/my-extension
.. group-tab:: TER
Download from the TYPO3 Extension Repository... tabs::
.. group-tab:: Composer
通过Composer安装:
.. code-block:: bash
composer require vendor/my-extension
.. group-tab:: TER
从TYPO3扩展仓库下载。.. card-grid::
:columns: 2
:card-height: 100
.. card:: Installation
Learn how to install the extension.
:ref:`Read more <installation>`
.. card:: Configuration
Configure the extension for your needs.
:ref:`Read more <configuration>`.. card-grid::
:columns: 2
:card-height: 100
.. card:: 安装
了解如何安装本扩展。
:ref:`阅读更多 <installation>`
.. card:: 配置
根据需求配置扩展。
:ref:`阅读更多 <configuration>`.. accordion::
.. accordion-item:: How do I install this extension?
See the :ref:`installation` chapter.
.. accordion-item:: What PHP version is required?
PHP 8.2 or higher is required... accordion::
.. accordion-item:: 如何安装此扩展?
请查看:ref:`installation`章节。
.. accordion-item:: 需要什么版本的PHP?
需要PHP 8.2或更高版本。Documentation/.editorconfigroot = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80Documentation/.editorconfigroot = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined:alt::alt:.. figure:: /Images/BackendModule.png
:alt: Backend module screenshot
:class: with-shadow
The backend module provides an overview of all items... figure:: /Images/BackendModule.png
:alt: 后台模块截图
:class: with-shadow
后台模块展示所有项目的概览。Documentation/
└── Images/
├── BackendModule.png
├── Configuration.png
└── Frontend.pngDocumentation/
└── Images/
├── BackendModule.png
├── Configuration.png
└── Frontend.pngIndex.rstindex.rstConfiguration/configuration/BackendModule.pngbackend-module.pngIndex.rstindex.rstConfiguration/configuration/BackendModule.pngbackend-module.png============
Installation
============
This chapter explains how to install the extension.
Requirements
============
- TYPO3 v13.4 or v14.x
- PHP 8.2 or higher
Installation via Composer
=========================
Run the following command:
.. code-block:: bash
composer require vendor/my-extension
After installation, activate the extension:
.. code-block:: bash
vendor/bin/typo3 extension:activate my_extension============
安装指南
============
本章说明如何安装本扩展。
系统要求
============
- TYPO3 v13.4或v14.x
- PHP 8.2或更高版本
通过Composer安装
=========================
执行以下命令:
.. code-block:: bash
composer require vendor/my-extension
安装完成后,激活扩展:
.. code-block:: bash
vendor/bin/typo3 extension:activate my_extensionDocumentation/guides.xmlDocumentation/guides.xml.. include:: /Includes.rst.txt
.. _start:
==============
My Extension
==============
:Extension key:
my_extension
:Package name:
vendor/my-extension
:Version:
|release|
:Language:
en
:Author:
Your Name
:License:
This document is published under the
`Creative Commons BY 4.0 <https://creativecommons.org/licenses/by/4.0/>`__
license.
:Rendered:
|today|
----
This extension provides functionality for managing items.
----
**Table of Contents**
.. toctree::
:maxdepth: 2
:titlesonly:
Introduction/Index
Installation/Index
Configuration/Index
Usage/Index
Developer/Index
.. toctree::
:hidden:
Sitemap.. include:: /Includes.rst.txt
.. _start:
==============
我的扩展
==============
:扩展密钥:
my_extension
:包名称:
vendor/my-extension
:版本:
|release|
:语言:
en
:作者:
你的姓名
:许可证:
本文档采用`知识共享署名4.0国际许可协议 <https://creativecommons.org/licenses/by/4.0/>`__发布。
:渲染时间:
|today|
----
本扩展提供项目管理功能。
----
**目录**
.. toctree::
:maxdepth: 2
:titlesonly:
Introduction/Index
Installation/Index
Configuration/Index
Usage/Index
Developer/Index
.. toctree::
:hidden:
Sitemap