Kudos to Jochen Weiland and Riona Kuthe of JWeiland.net for giving a very good TYPO3 best practices presentation at the 2008 Berlin TYPO3 conference. In citing the typical excuse of being busy, I didn’t look deeper into their workshop PDF until April 2009.
What a newbie mistake
That best practice workshop PDF contains lots of good advice like hosting recommendations, modularizing TypoScript code and helping pick which templating method is right for you. Because of it, I immediately made many changes to my TYPO3 skeleton site.
It’s 2012, change happens
While I think that most of Jochen’s best practice recommendations still stand, I’d like to make the following succinct suggestions.
- TYPO3 Provider PHP’s Settings
- memory_limit = 64M
- upload_max_filesize = 100M
- post_max_size = 100M
- Update your .htaccess file
- TYPO3 Install Tool Settings (live)
// make BE permission access lists easier to manage with checkboxes than multiple select $TYPO3_CONF_VARS['BE']['accessListRenderMode'] = 'checkbox'; // BE compression enabling $TYPO3_CONF_VARS['BE']['compressionLevel'] = 5; // don't allow access unless it was specifically given $TYPO3_CONF_VARS['BE']['explicitADmode'] = 'explicitAllow'; // cleaner BE temp file URLs $TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = 1; // FE compression enabling $TYPO3_CONF_VARS['FE']['compressionLevel'] = 5; // keep FE user logged in unless they specifically log out $TYPO3_CONF_VARS['FE']['permalogin'] = '1'; // cleaner FE temp file URLs $TYPO3_CONF_VARS['FE']['versionNumberInFilename'] = 1; // don't run development modes on a production server $TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = ''; $TYPO3_CONF_VARS['SYS']['sqlDebug'] = false; $TYPO3_CONF_VARS['SYS']['syslogErrorReporting'] = '0'; $TYPO3_CONF_VARS['SYS']['systemLogLevel'] = '4';
- Modular (TSConfig &) TypoScript Code
&lt;INCLUDE_TYPOSCRIPT: source=&quot;FILE:EXT:extkey/folder/file.txt&quot;&gt; &lt;INCLUDE_TYPOSCRIPT: source=&quot;FILE:fileadmin/typoscript.ts&quot;&gt; &lt;INCLUDE_TYPOSCRIPT: source=&quot;FILE:EXT:in2master/Configuration/TSConfig/rte.ts&quot;&gt;
- Learn to use FLUIDTEMPLATE for templates
- Avoid using TemplaVoila as it’s no longer developed or maintained
- TypoScript: Standard Configuration
- Use one and include it via INCLUDE_TYPOSCRIPT
- Review your standard configuration for TYPO3 4.5+ changes
If you did the TYPO3 Install Tool updates above for `compressionLevel` and did NOT update .htaccess, your TYPO3 backend will not work.
I really want to know your TYPO3 best practices and suggestions. Even knowing what hasn’t worked is valuable, please take a moment to tell me about them via comments.
I’ll be creating a new presentation on TYPO3 Best Practices soon. Ask me to come present at your organization.
Revised since April 29, 2009