RTE中往往用到自定义样式。解决方法如下。 (continue reading…)
typo3
Flexform配置类似inline效果
====== Flexform ======
LLL:EXT:cms/locallang_ttc.xml:media.additionalOptions
array
1
array
LLL:EXT:cms/locallang_ttc.xml:media.params
select
LLL:EXT:cms/locallang_ttc.xml:media.params.autoPlay
autoPlay
LLL:EXT:cms/locallang_ttc.xml:media.params.loop
loop
select
LLL:EXT:cms/locallang_ttc.xml:media.params.on
1
LLL:EXT:cms/locallang_ttc.xml:media.params.off
0
input
16
array
LLL:EXT:cms/locallang_ttc.xml:media.params.customEntry
text
6
60
How to get:
$this->pi_initPIflexForm(); //Init FlexForm configuration for plugin
$this->lConf = array(); // Setup our storage array...
// Assign the flexform data to a local variable for easier access
$piFlexForm = $this->cObj->data ['pi_flexform'];
// Traverse the entire array based on the language...
// and assign each configuration option to $this->lConf array...
if (!empty($piFlexForm['data'])) {
foreach ($piFlexForm['data'] as $sheet => $data) {
if (!empty($data)) {
foreach ($data as $lang => $value) {
if (!empty($value)) {
foreach ($value as $key => $val) {
if ($key == 'multiOptions') {
foreach ($val['el'] as $mmKey => $mmVal) {
foreach ($mmVal as $mmListKey => $mmListVal) {
if ($mmListKey == 'container1') {
foreach ($mmListVal['el'] as $keyshow => $keyval) {
$this->container1[$keyshow][] = $keyval['vDEF'];
}
}
if ($mmListKey == 'container2') {
foreach ($mmListVal['el'] as $keyshow => $keyval) {
$this->container2[$keyshow][] = $keyval['vDEF'];
}
}
}
}
} else {
$this->lConf[$key] = $this->pi_getFFvalue($piFlexForm, $key, $sheet);
}
}
}
}
}
}
}
typo3取消Imagemagick锐化效果
install里设置:
$TYPO3_CONF_VARS[‘GFX’][‘im_no_effects’] = ‘1’;
staticinfotables调用方法
pi中常用到国家列表,我们调用static info tables,方法如下: (continue reading…)
Using htmlArea RTE in a frontend plugin
Extension developers may use the htmlArea RTE to edit textarea fields in frontend plugins. In order to do so, you must invoke the htmlArea plugin in the plugin class and insert some markers in the HTML template. (continue reading…)
Defining the “default” language flag
If you want to specify the name of the default language and a flag icon you can do so for a branch of the page tree by setting this Page TSconfig for the root page of your website: (continue reading…)
typo3 – SSL
下载插件: https_enforcer
http://typo3.org/extensions/repository/view/https_enforcer/current/
(continue reading...)