Configuration
From TYPO3Wiki
<< Back to Administrators page
Please note in the Discussion page what you change!
This document starts describing how you can configure your TYPO3 site in different ways and then continues giving examples on things to configure. Here you should find all those small tips and tricks on how to get your TYPO site look exactly the way you want!
Contents |
Using TypoScript
Contents under this heading should be copied from the TypoScript Syntax and in-depth Study document by Kasper.
About TypoScript
Where is TypoScript used?
Entering TypoScript
Default & multiple languages
Multiple domains
PHP memory limit
User experiences:
we had some problems with Typo3 3.6.x if a user was logged in in the backend and wanted to display pages in the frontend at the same time (we got the "page is being generated" message and afterwards a blank white page). We increased from 16MB to 24 MB and the problem dissolved.
Two days ago we had problems with page export in the backend ("export to .t3d" with a page containing large graphics downloads). After increasing the memory limit to 64MB(!) everything worked fine.
To solve this problem without modifying php.ini, you can use the PHP directive ini_set(). I have successfully used this simple line of code: ini_set ( "memory_limit", "32M" ); In general, you must insert it at the top of files which have memory problems. You can read the reference for ini_set() at http://www.php.net/ini_set.
On a well known hosting I see, that Install Tool show memory limit problem. But all works OK. I write simple program to check memory limit. And this program show, that all is OK ( memory limit > 20 Mb).
<?
$str1=implode("",file("some_100Kb_file.txt") );
echo "....".strlen($str)."...OK
";
$str=$str1;
for ($i=0; $i<2000; $i++)
{
$str=$str.$str1;
echo $i."....".strlen($str)."...OK
";
}
?>
User management
Add a Favicon to your site
page.shortcutIcon = fileadmin/img/xyz.ico
http://typo3.org/documentation/document-library/doc_core_tsref/quot_PAGE_quot/
Customizing the Rich Text Editor
Put the text from http://typo3.org/documentation/tips-tricks/customizing-the-rich-text-editor here.
Content versioning
Here's the reference for versionning: http://typo3.org/documentation/document-library/doc_core_tsconfig/MOD/
Put that in the TSconfig of your root page:
# If you want at least 2 days TCEMAIN.default.history.maxAgeDays = 2
Alt text for images
Providing alt text for images - simple (one image only) - TEXT and IMGTEXT
tt_content.image.20.1.alttext.field = imagecaption tt_content.textpic.20.1 < tt_content.image.20.1
Providing alt text for images - advanced (more images) - TEXT and IMGTEXT
tt_content.image.20.1.alttext.cObject = TEXT tt_content.image.20.1.alttext.cObject { field = imagecaption listNum = 0 listNum.splitChar = 10 override.cObject = TEXT override.cObject { listNum.stdWrap.data = register:IMAGE_NUM listNum.splitChar = 10 } trim = 1 } tt_content.textpic.20.1 < tt_content.image.20.1
