typo3

Prepared queries are the way to go!

Prepared queries are now part of the TYPO3 database API. The API is mostly based on PDO’s method naming and currently supports SELECT queries. Read on to learn how to take advantage of this enhanced API for your own extensions. (continue reading…)


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…)


headerComment2

typo3项目中遇到需要在baseurl之前输出内容的情况,写了一个插件实现.

用法: TS中配置

config.headerComment2 = <!– abcdefg –>

下载

1 Comment more...

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…)

1 Comment more...

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);
}

1 Comment more...

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);


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress