Archives
If you like to use the link wizard to link to an internal or external url you may want to change the start tab. You can to this very easy. Just open the tca.php of your extension. Find the field you want to change and replace “script” => “browse_links.php?mode=wizard”, with “script” => “browse_links.php?mode=wizard&act=page”, to start [...]
Using the the typoLink function in your own Typo3 extension is very simple. First you need an instance of the tslib_cObj object. Then setup the config array and call the method. That’s all. To create the instance you need to include the object first: include_once(PATH_site.’typo3/sysext/cms/tslib/class.tslib_content.php’); Then create the tslib_cObj: $cObj=t3lib_div::makeInstance(‘tslib_cObj’); Setup the config array: (See [...]
Again I need to talk about the default section of the locallang.xml. When you are following the tip of my last post you may encounter an other problem. You don’t have a default anymore (yeah! I know I suggest to remove the default section). This is may a problem if you need to handle many [...]
After you had finally master your the utf8 convert of you Typ3 installation may encounter an other problem. Your own extension is not producing utf8 output. Your first idea will be to add “SET NAMES UTF8;” to you database connection when using the DBAL of Typo3. But this is not your problem $GLOBALS['TYPO3_DB']->exec_SELECTquery (which is [...]
Building a multi language site can be very hard. First of all you need be sure that you are running Typo3 and your database with the correct encoding. UTF-8 is your friend! Apply all the setting you need for you installation (have a look at http://wiki.typo3.org/index.php/UTF-8_support will may help you) and also ensure your database [...]
Please keep in mind that you need to translate your SysFolder to use this feature!!!!!! Otherwise you need to go the hard way …
Insert these lines after the root entry of the DS: <meta> <langChildren>1</langChildren> </meta> <root>…</root>
Hey … it’s very simple to get the last sql statement. Before the execution of the statement write this: $GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1; Then execute the statement. After that you can query the sql string with: echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;