= Verzeichnissstruktur =
* typo3conf/ext/ncfluid - [[#ext_emconf.php ]] [[#ext_localconf.php ]] [[#ext_tables.sql]] ext_icon.gif [[#ext_tables.php locallang_db.xml ]] tx_ncfluid_domain_model_table.gif
** typo3conf/ext/ncfluid/Classes
*** typo3conf/ext/ncfluid/Classes/Controller/ - [[#TableController.php]]
**** typo3conf/ext/ncfluid/Resources/Public/Stylesheets/ - [[#styles.css]]
**** typo3conf/ext/ncfluid/Resources/Public/JavaScript/ - [[#UIHelper.js]]
 
= Grundkonfiguration =
==ext_emconf.php==
'''typo3conf/ext/ncfluid/ext_emconf.php'''
<source lang="php">
<?php
 
$EM_CONF[$_EXTKEY] = array(
'title' => 'ncfluid title',
'description' => 'ncfluid description',
'category' => 'fe',
'author' => 'frederick',
'author_email' => 'frederik@netz.coop',
'shy' => '',
'dependencies' => '',
'conflicts' => '',
'priority' => '',
'module' => '',
'state' => 'alpha',
'internal' => '',
'uploadfolder' => 0,
'createDirs' => '',
'modify_tables' => '',
'clearCacheOnLoad' => 1,
'lockType' => '',
'author_company' => '',
'version' => '0.0.1',
'constraints' => array(
'depends' => array(
/**
* wichtig da die extbase und fluid extension unbedingt vorhanden sein müssen!
*/
'php' => '5.2.0-0.0.0',
'typo3' => '4.3.dev-0.0.0',
'extbase'=> '1.0.1-0.0.0',
'fluid' => '1.0.1-0.0.0'
),
'conflicts' => array(
),
'suggests' => array(
),
),
);
 
?>
</source>
 
==ext_localconf.php==
'''typo3conf/ext/ncfluid/ext_localconf.php'''
<source lang="php">
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
 
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Pi1',
array(
'Table' => 'index,new,create,delete,show,edit,update'
),
array(
'Table' => 'index,new,create,delete,show,edit,update'
)
);
?>
</source>
==ext_tables.php==
'''typo3conf/ext/ncfluid/ext_tables.php'''
<source lang="php">
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
 
/**
* einbinden des TypoScript
*/
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'ncfluid include js libs');
 
$ePath = t3lib_extMgm::extPath($_EXTKEY);
 
$TCA['tx_ncfluid_domain_model_table'] = Array (
'ctrl' => array (
'title' => 'tx_ncfluid_domain_model_table',
'label' => 'table',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'delete' => 'deleted',
'enablecolumns' => Array( 'disabled' => 'hidden' ),
'dynamicConfigFile' => $ePath.'Configuration/TCA/Table.php',
'iconfile' => $ePath.'Resources/Public/Icons/tx_ncfluid_domain_model_table.png'
)
);
 
 
/**
* mit Hilfe von Extbase die Extension zur Auswahl als Frontendplugin registrieren
* paralell muss ext_localconf.php:Tx_Extbase_Utility_Extension::configurePlugin vorhanden sein
*/
Tx_Extbase_Utility_Extension::registerPlugin(
// Name der Extension
$_EXTKEY,
// eindeutiger Name des Plugins
'Pi1',
// Text, der in der Selectbox erscheinen soll
'ncfluid datatables'
);
?>
</source>
= MVC =
Änderungen – Vosp.info

Änderungen

Aus Vosp.info
Wechseln zu:Navigation, Suche
3.057
Bearbeitungen

Navigationsmenü