typo3

clear cache immediately

在包含news的SysFolder属性的option里配置TS:

TCEMAIN.clearCacheCmd = all



startpoint-recursive

$this->storagePid = $this->pi_getPidList($this->cObj->data[‘pages’], $this->cObj->data[‘recursive’]);

1 Comment more...

屏蔽list里的add,save等按钮

t3lib_extMgm::addUserTSConfig(‘
options.saveDocNew.tx_t3blog_post=0
‘);
t3lib_extMgm::addUserTSConfig(‘
options.saveDocNew.tx_t3blog_cat=0
‘);


tca.inline.tt_content配置与读取

TCA里:
‘config’ => array (
‘type’ => ‘inline’,
‘foreign_table’ => ‘tt_content’,
‘maxitems’ => 100,
‘appearance’ => array( (continue reading…)


前台RTE输出

$this->pi_RTEcssText();
用这个包裹就行了。


Changing default image width of 600 px in Typo3

Typo3 by default limits image width to 600 px. You can easily change this setting using TypoScript. These TypoScript can be usually located on the root Template record. If not you can try using the object browser to find the exact location. (continue reading…)


读取默认TS配置

$GLOBALS[‘TSFE’]->tmpl->setup
$GLOBALS[‘TSFE’]->tmpl->setup[‘config.’]
$GLOBALS[‘TSFE’]->tmpl->setup[‘config.’][‘baseURL’]


Configure TYPO3 for Localized Websites

A bit older of a multi-lingual setup guide, but the principals are the same.

The information below is over a year old, circa mid-2008. Some of the techniques and settings may have changed for TYPO3 4.2 and TYPO3 4.3. I’ll release an update to this in early 2010.

  1. Website Language Creation
    1. On the TYPO3 Global page via List mode, add a new Website Language. Take note of the uid of that language. To do so, hover over the Website Language icon after saving and closing to see the uid. You’ll need this for the sys_language_uid setting later on. (continue reading…)

typo3插件创建目录

ext_emconf.php
中加入 ‘createDirs‘ => ‘uploads/tx_templavoila/’
插件安装时会创建目录


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