Skip to content

Commit

Permalink
[DOCS] Add developer section again to docs, translate it
Browse files Browse the repository at this point in the history
  • Loading branch information
kanow committed Nov 7, 2019
1 parent e034c40 commit 7b9e1f8
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 25 deletions.
13 changes: 9 additions & 4 deletions Documentation/DeveloperManual/Extending/Index.rst
Expand Up @@ -7,14 +7,21 @@

.. _install:

=================
Extend operations
-----------------
=================


If you want to extend operations, there is an example extension on github.

`extend_operations <https://github.com/kanow/extend_operations>`_

.. note::

Those extensions is only running on TYPO3 8. They doesn't work on TYPO3 9.5!
Probably the code must be changed to get a running version on TYPO3 9.5.


In this example extension is only one new property "subtitle" for the operation model. If you need more than this single field, you can add more in this way. Replace "newfield" with the name of your new property.

Classes/Domain/Model/Operation.php
Expand Down Expand Up @@ -129,9 +136,7 @@ Add the field(s) to the database. Install the extension or use Install-Tool comp
# Table structure for table 'tx_operations_domain_model_operation'
#
CREATE TABLE tx_operations_domain_model_operation (
newfield varchar(255) DEFAULT '' NOT NULL,
);
Clear Install-Tool Cache and you should be able to see your new field(s) in the backend and after using the new field(s) in the fluid templates you can show them also in frontend. Please check your TypoScript and adapt fluid template paths.
Clear Install-Tool Cache and you should be able to see your new field(s) in the backend and after using the new field(s) in the fluid templates you can show them also in frontend. Please check your TypoScript and adapt fluid template paths.
7 changes: 3 additions & 4 deletions Documentation/DeveloperManual/Index.rst
Expand Up @@ -8,18 +8,17 @@

.. _admin-manual:

Developer Manual
====================
For Developers
==============


Target group: **Developers**



.. toctree::
:maxdepth: 5
:titlesonly:
:glob:

Extending/Index

1 change: 1 addition & 0 deletions Documentation/Index.rst
Expand Up @@ -62,6 +62,7 @@ Manage firefighter operations with detailed reports, images, used resources or v
Installation/Index
Configuration/Index
BestPractice/Index
DeveloperManual/Index
Migration/Index
Changelog/Index
Sitemap
Expand Down
4 changes: 2 additions & 2 deletions Documentation/Localization.de_DE/Changelog/Index.rst
Expand Up @@ -13,7 +13,7 @@
==========

Update auf 3.2.0
===============
================

Kategorien
^^^^^^^^^^
Expand Down Expand Up @@ -82,7 +82,7 @@ Siehe Seite Migration hier in der Doku :ref:`migration`


Ausführliche Liste mit Hilfe des Git-Logs
========================================================
=========================================

Klont das Github Repository von 'operations' und nutzt das folgende Kommando um eine Lsite der Commits zu bekommen. Ersetzt die Versionsnummer in dem Beispiel mit der Nummer der Version die ihr momentan benutzt.

Expand Down
Expand Up @@ -7,20 +7,27 @@

.. _install:

Extend operations
-----------------
====================
Operations erweitern
====================


If you want to extend operations, there is an example extension on github.
Es gibt eine Beispielextension auf Github mit der man `operations` um ein neues Feld/Eigenschaft erweitern kann.

`extend_operations <https://github.com/kanow/extend_operations>`_

In this example extension is only one new property "subtitle" for the operation model. If you need more than this single field, you can add more in this way. Replace "newfield" with the name of your new property.
.. note::

Diese Extension ist schon etwas älter und läuft nur unter TYPO3 8, nicht unter 9.5!
Wahrscheinlich müsst ihr die Extension anpassen, damit sie unter 9.5 läuft.

Wenn euch ein Feld/Eigenschaft fehlt, könnt ihr das mit solch einer Extension nachrüsten.
In dieser Beispielextension wird das Model "operation" (der Einsatz) mit einer zusätzlichen Eigenschaft "subtitle" (Untertitel) erweitert. Wenn ihr mehr Felder/Eigenschaften braucht könnt ihr natürlich mehr Felder in der gleichen Art und Weise hinzufügen. Ersetzt "newfield" mit dem Namen eurer neuen Eigenschaft.

Classes/Domain/Model/Operation.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Add the new property with getter and setter in the operation model. You can do this in the same way for the other models too.
Neue Getter und Setter hinzufügen. In der gleichen Art könnt ihr das auch für ein anderes Model tun.

.. code-block:: php
Expand Down Expand Up @@ -59,7 +66,7 @@ Add the new property with getter and setter in the operation model. You can do t
Configuration/TCA/Overrides/tx_operations_domain_model_operation.php
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Write the TCA definition to show the new field in backend.
TCA Konfiguration für die Anzeige der Felder im Backend.

.. code-block:: php
Expand Down Expand Up @@ -98,7 +105,7 @@ Write the TCA definition to show the new field in backend.
Resources/Private/Language/locallang_db.xlf
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Add a key for the new field in the locallang file.
Locallang Key für die Übersetzungen der Feldnamen im Backend.

.. code-block:: xml
Expand All @@ -121,17 +128,16 @@ Add a key for the new field in the locallang file.
ext_tables.sql
^^^^^^^^^^^^^^

Add the field(s) to the database. Install the extension or use Install-Tool compare to add the new fields.
Neue Felder für die Datenbank. Installiert die Extension oder nutzt den Datenbank Compare im Install-Tool um die neuen Felder
nun auch hinzuzufügen.

.. code-block:: sql
#
# Table structure for table 'tx_operations_domain_model_operation'
#
CREATE TABLE tx_operations_domain_model_operation (
newfield varchar(255) DEFAULT '' NOT NULL,
);
Clear Install-Tool Cache and you should be able to see your new field(s) in the backend and after using the new field(s) in the fluid templates you can show them also in frontend. Please check your TypoScript and adapt fluid template paths.
Leert den Cache im Install-Tool um die neuen Felder im Backend zu sehen. Später könnt ihr die neuen Daten auch im Fluid Template ausgeben lassen. Prüft dazu auch das TypoScript und passt ggf. die Template Pfade an.
7 changes: 3 additions & 4 deletions Documentation/Localization.de_DE/DeveloperManual/Index.rst
Expand Up @@ -8,18 +8,17 @@

.. _admin-manual:

Developer Manual
====================
Für Entwickler
==============


Target group: **Developers**



.. toctree::
:maxdepth: 5
:titlesonly:
:glob:

Extending/Index

1 change: 1 addition & 0 deletions Documentation/Localization.de_DE/Index.rst
Expand Up @@ -56,6 +56,7 @@ Verwaltung von Feuerwehreinsätzen in einer TYPO3 Webseite. Detaillierte Bericht
Installation/Index
Configuration/Index
BestPractice/Index
DeveloperManual/Index
Migration/Index
Changelog/Index
Sitemap
Expand Down

0 comments on commit 7b9e1f8

Please sign in to comment.