Development¶
Work with site¶
Installation¶
Clone the repository
git clone https://github.com/buepro/typo3-grevman.git
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
Create tests¶
Create test db¶
Export db using preset grevman-test-static
Remove the
header-tagRename the
T3RecordDocumenttodatasetRemove
records-tagRemove the following tags:
lockToDomain-,disableIPlock,createdbyaction,usergroup_cached_list,t3ver_.*?,legacy_overlay_uid,sitetitle<[TagName]>.*?</[TTagName]>\n\s*
Remove
related-tag using the following regular expression<related[\s\w="]*>[\w\W\s]*?</related>\\n
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>
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',
];