We have created Theme Extension in the following way:
- Downloaded the extension package from the site package builder(https://sitepackagebuilder.com/new/)
- Download and installed the TYPO3 V8.7.9 package.
- Then placed the extension package under the folder typo3conf/ext/ and installed the extension package in the Extension section
Installed MASK and Power mail extensions because for implementing template extension we used MASK and PowerMail for form submission.
Then placed the theme related templates, styles, Js, typoscript inside the extension folder.
- MASK content element templates are managed under the folder fileadmin//templates/content, fileadmin//templates/preview and Page content images are managed under the folder fileadmin//images, mask.json file managed under the fileadmin//. To achieve the above process, we have modified the mask backend configuration.
- After implementation of the theme extension, most features work except when we try to install our extension in another clean typo3 package it is not working. In order to solve, we did the following changes:
7.1. Created a new folders Initialisation, Initialisation/Extensions, Initialisation/Files under our extension folder.
7.2. Placed the dependency extension packages into Initialisation/Extensions.
7.3. Placed all the fileadmin files() into Initialisation/Files.
7.4. Modified the file ext_emconf.php to mentioned the extension details and its dependency extensions.
7.5. Placed the exported T3d pagetree file under the folder Initialisation with the name data.t3d
7.6. Added the following code in the file ext_localconf.php, for changing the mask backend configuration
<pre>
<code>
$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['mask'] = serialize([
'json' => 'typo3conf/ext/key-name/mask.json',
'content' => 'fileadmin/key-name/templates/content/',
'layouts' => 'fileadmin/key-name/templates/content/Layouts/',
'partials' => 'fileadmin/key-name/templates/content/Partials/',
'backend' => 'fileadmin/key-name/templates/backend/',
'layouts_backend' => 'fileadmin/key-name/templates/backend/Layouts/',
'partials_backend' => 'fileadmin/key-name/templates/backend/Partials/',
'preview' => 'fileadmin/key-name/templates/preview/',
]);
</code>
</pre>
7.7. If we add a new content element in the mask, a mask will add a new field to the tt_content table and create a new table for storing that content element values. Since this theme has too many content elements, we have added the ALTER and CREATE TABLE queries in the ext_tables.sql file. We have also added the UPDATE and INSERT queries for mask content element values.
Issue: Now the issue is, points 7.6 and 7.7(Create and Update queries are not getting executed) i.e. not working while installing our extension in the clean typo3 package.
Please let me know where we are going wrong.
Many thanks Regards Sharmistha