Develop

Work with site

Installation

  1. Clone the repository

    git clone https://github.com/buepro/typo3-pizpalue.git
    
  2. Create site

    composer ddev:install
    

Development

Use the ddev container during development. Like this the system environment is being respected. E.g.:

ddev composer update

Uninstallation

To remove the development site use:

composer ddev:uninstall

Create tests

Create test db

  1. Export db using preset “Test”

  2. Rename the T3RecordDocument to dataset

  3. Remove the header-tag

  4. Remove files_fal-tag

  5. Remove records-tag

  6. Remove related-tag using the following regular expression

    <related[\s\w="]*>[\w\W\s]*?</related>\n
    
  7. Create table tags using the following regular expression

    Search:

    <tablerow index="(\w*)[:\w\s="]*>[\n\s]+<fieldlist index="data"
    type="array">([\w\W\s]+?)<\/fieldlist>[\n\s]*<\/tablerow>
    

    Replace:

    <$1>$2</$1>
    
  8. Create columns tag using the following regular expression

    Search:

    <field index="(\w+)"[\s\w\d="]*>([\w\W]*?)</field>
    

    Replace:

    <$1>$2</$1>
    
  9. Remove columns lang and mfa from table be_users

Add needed extensions

It might be needed to add the following extensions:

protected $coreExtensionsToLoad = [
   'impexp',
   'seo',
];
protected $testExtensionsToLoad = [
   'typo3conf/ext/pvh',
   'typo3conf/ext/container',
   'typo3conf/ext/container_elements',
   'typo3conf/ext/bootstrap_package',
   'typo3conf/ext/pizpalue',
];

Notes

  • Bootstrap package sync status: - Branch BP-12.0: 22.04.2022 / commit 16734ba6 - Branch BP-12.1: 26.11.2021 / commit 028a786b