Development

Work with site

Installation

  1. Clone the repository

    git clone https://github.com/buepro/typo3-grevman.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:delete

Create tests

Create test db

  1. Export db using preset grevman-test-static

  2. Remove the header-tag

  3. Rename the T3RecordDocument to dataset

  4. Remove records-tag

  5. Remove the following tags: lockToDomain-, disableIPlock, createdbyaction, usergroup_cached_list, t3ver_.*?, legacy_overlay_uid, sitetitle

    <[TagName]>.*?</[TTagName]>\n\s*
    
  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>
    

Add needed extensions

It might be needed to add the following extensions:

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