.. include:: /Includes.rst.txt
.. _develop:
===========
Development
===========
Work with site
==============
Installation
------------
#. Clone the repository
.. code-block:: bash
git clone https://github.com/buepro/typo3-container_elements.git && cd typo3-container_elements
#. Create site
.. code-block:: bash
composer ddev:install
Development
-----------
Use the ddev container during development. Like this the system environment
is being respected. E.g.:
.. code-block:: bash
ddev composer update
Uninstallation
--------------
To remove the development site use:
.. code-block:: bash
composer ddev:uninstall
Create tests
============
Create test db
--------------
.. rst-class:: bignums
#. Export db using preset "Test content elements"
#. Rename the `T3RecordDocument` to `dataset`
#. Remove the `header`-tag
#. Remove `files_fal`-tag
#. Remove `records`-tag
#. Remove `related`-tag using the following regular expression
.. code-block:: bash
[\w\W\s]*?\n
#. Create table tags using the following regular expression
**Search:**
.. code-block:: bash
[\n\s]+([\w\W\s]+?)<\/fieldlist>[\n\s]*<\/tablerow>
**Replace:**
.. code-block:: bash
<$1>$2$1>
#. Create columns tag using the following regular expression
**Search:**
.. code-block:: bash
([\w\W]*?)
**Replace:**
.. code-block:: bash
<$1>$2$1>
Add needed extensions
---------------------
It might be needed to add the following extensions:
.. code-block:: php
protected $coreExtensionsToLoad = [
'impexp',
'seo',
'felogin',
];
.. code-block:: php
protected $testExtensionsToLoad = [
'typo3conf/ext/vhs',
'typo3conf/ext/container',
'typo3conf/ext/container_elements',
'typo3conf/ext/bootstrap_package',
'typo3conf/ext/pizpalue',
];