typo3
Getting ready for 4.5: changes in CSH for FlexForms
If you have designed an extension which uses FlexForms and have added CSH to that form, you need to make a tiny change for TYPO3 4.5. Read on.
The new rendering of CSH in TYPO3 4.5 (continue reading…)TYPO3 Services
With a services extension you can extend the functionality of TYPO3 (or an extension which uses services), without any changes to the original code of TYPO3 or the extension.
Services are PHP classes inside of an extension similar to FE-plugins. Usually when you use a class, you address it directly by creating an instance: (continue reading…)
Page is being generated
1) check if caching is enabled on your site
2) Check if you have any 'slow' extentions enabled (extentions that
disable caching at all, or are slow due to the amouth of work it needs
to do)
3) what HW are you running on?
4) Use eaccelerator or simular tools
5) Enable query caching on mysql
6) Important, In the previous article we talked about TYPO3 template functions. I mentioned that substituteMarkerArrayCached is a function that developers should not use. In this article I am going to explain why. 请查看http://黄博.com/?p=1026
Why substituteMarkerArrayCached is bad
In the previous article we talked about TYPO3 template functions. I mentioned that substituteMarkerArrayCached is a function that developers should not use. In this article I am going to explain why.
As you remember there are four “substitute” functions for use with TYPO3 templates:
- substituteMarker
This function substitutes a single marker - substituteMarkerArray
This function does the same as above but for many markers in the array - substituteSubpart
Substitutes a single subpart - substituteMarkerArrayCached
Our today’s case.
The first two functions substitute marker and marker array. The third substitutes template subpart. The obvious missing function is the one to substitute subpart array. (continue reading…)
TYPO3 multi language & multi domain site with RealURL and language menu
This is a step-by-step tutorial which describes in detail how to setup TYPO3 for a multilingual website with “domain language switching”. It will describe how to properly configure RealURL, extend it’s configuration with simple PHP statements in the RealURL configuration file and last but not least, probably the most important thing: the language switch menu with cross domain support.
I started with a clean TYPO3 installation and created two page trees in order to test the setup in a multiple page tree setup. Therefore I defined that on my local Linux box typo3-ml.local listens to the default language, while typo3-ml-en.local and typo3-ml-it.local – you guessed it – listens to the english and italian language versions of the page tree. (continue reading…)
typo3插件互相调用方法
/*
* displayContact
*@param type: agency or customers
*@param data: data uid
*@param pageid: contact page id
*/
protected function displayContact($type, $data, $pageid) {
// Get default configuration
$conf = $GLOBALS[‘TSFE’]->tmpl->setup[‘plugin.’][‘tx_demodata_pi4.’];
// Modify this configuration
$conf += array(‘type’ => $type,’data’ => $data,’pageid’ => $pageid);
// Get page
$cObj = t3lib_div::makeInstance(‘tslib_cObj’);
/* @var $cObj tslib_cObj */
$cObj->start(array(), ”);
return $cObj->cObjGetSingle(‘USER’, $conf);
}
typo3取数据库信息
相关信息己被定义为常量
// Defining the database setup as constants
define(‘TYPO3_db’, $typo_db);
define(‘TYPO3_db_username’, $typo_db_username);
define(‘TYPO3_db_password’, $typo_db_password);
define(‘TYPO3_db_host’, $typo_db_host);
define(‘TYPO3_tables_script’, $typo_db_tables_script);
define(‘TYPO3_extTableDef_script’, $typo_db_extTableDef_script);