first commit
This commit is contained in:
16
plugins/appAdditionalDescPlugin/config/config.php
Normal file
16
plugins/appAdditionalDescPlugin/config/config.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/*
|
||||
* @author Krzysztof Bebło <krzysztof.beblo@sote.pl>
|
||||
*/
|
||||
|
||||
if (SF_APP == 'frontend'){
|
||||
stPluginHelper::addEnableModule('appAdditionalDescFrontend', 'frontend');
|
||||
$dispatcher->connect('smarty.slot.append', array('appAdditionalDescPluginListener', 'append'));
|
||||
}
|
||||
|
||||
if (SF_APP == 'backend'){
|
||||
stPluginHelper::addEnableModule('appAdditionalDescBackend', 'backend');
|
||||
stPluginHelper::addRouting('appAdditionalDescPlugin', '/additional-desc/*', 'appAdditionalDescBackend', 'config', 'backend');
|
||||
$dispatcher->connect('stAdminGenerator.generateStProduct', array('appAdditionalDescPluginListener', 'generate'));
|
||||
stConfiguration::addModule('appAdditionalDescPlugin', 'group_2');
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
edit:
|
||||
display:
|
||||
"Opis": [description2]
|
||||
fields:
|
||||
description2:
|
||||
name: "Dodatkowy opis"
|
||||
type: textarea_tag
|
||||
params: "rich=true tinymce_options=height:200,width:'100%' disabled=false"
|
||||
i18n: appAdditionalDescBackend
|
||||
help: help.desc
|
||||
|
||||
export:
|
||||
fields:
|
||||
description2: {name: Dodatkowy opis, sample: Dodatkowy opis, type: string, i18n: appAdditionalDescBackend}
|
||||
|
||||
import:
|
||||
fields:
|
||||
description2: {name: Dodatkowy opis, sample: Dodatkowy opis, type: custom, i18n: appAdditionalDescBackend}
|
||||
@@ -0,0 +1,11 @@
|
||||
propel:
|
||||
st_product:
|
||||
_attributes:
|
||||
phpName: Product
|
||||
isI18N: true
|
||||
i18nTable: st_product_i18n
|
||||
st_product_i18n:
|
||||
_attributes:
|
||||
phpName: ProductI18n
|
||||
description2:
|
||||
type: MEDIUMTEXT
|
||||
Reference in New Issue
Block a user