Create Typo3 package
From TYPO3Wiki
<< Back to Help, tips and troubleshooting page
This page describes how to create you own TYPO3 package like dummy.zip
Contents |
Default database setup
If you want some default database setup (Pages, Users, Typoscript, etc. but no media, images or and other files) do the following: Unpack a default TYPO3 dummy package (zip including sources or tar.gz as you prefer.), do a 1-2-3 installation and do all your necessary settings. Then export the database with all create statements and data to a file called database.sql and put it in typo3conf/ of another fresh unzipped package on which you didn't run 1-2-3 (overwriting the existing files there)
Then pack the directory where you copied the database.sql file over with your favourite archive-utility.
Or you can use the TYPO3-source package, create the necessary folders manually and then adapt the typo3conf/localconf.php file manually.
A description how to edit the file can be found here: localconf.php and $TYPO3_CONF_VARS The Offline-Version of this document-block is much more readable. --Davidbruchmann 02:55, 22 February 2008 (CET)
Then do the same steps with your database as described above.
Include Install tool settings
If you want to include also some settings done via the Install tool then you should take a look at localconf.php in both the unpacked directotries. Just include all settings you find sensefull in the localconf.php of the not installed version.
Start your package with the Install tool
If you do not include the database settings (in localconfig.php):
<PHP> :$typo_db_username = 't3_kb_chat'; // Modified or inserted by TYPO3 Install Tool. $typo_db_password = 'xxxxxxx'; // Modified or inserted by TYPO3 Install Tool. $typo_db_host = 'localhost'; // Modified or inserted by TYPO3 Install Tool. $typo_db = 't3_kb_chat_2';
then the install tool will come up.
T3D export and import
Since TYPO3 3.8.0 you can just use the dummysite for adding a fresh new site (blank) and then import complete sites using the export - and import function in the context-menu (formerly impexp extension before it went into the core).
Information from Bernhard Kraft and Michael Stucki, found in the typo3.english maling list.
