Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 35ee552b82
Fetching contributors…

Cannot retrieve contributors at this time

file 71 lines (55 sloc) 2.82 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key,pages';


t3lib_extMgm::addPlugin(array('LLL:EXT:mojo_sleekgallery/Resources/Private/Language/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');


t3lib_extMgm::addStaticFile($_EXTKEY,"Configuration/TypoScript/","MoJo SleekGallery");

// Flexforms
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';
if (t3lib_extMgm::isLoaded('dam')) {
  t3lib_extMgm::addPiFlexFormValue('mojo_sleekgallery_pi1', 'FILE:EXT:mojo_sleekgallery/Configuration/Flexforms/flexformDAM_ds.xml');
} else {
  t3lib_extMgm::addPiFlexFormValue('mojo_sleekgallery_pi1', 'FILE:EXT:mojo_sleekgallery/Configuration/Flexforms/flexform_ds.xml');
}

if (TYPO3_MODE=="BE") $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_mojosleekgallery_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'Classes/MoJo/SleekGallery/Wizicon.php';

t3lib_extMgm::allowTableOnStandardPages('tx_mojosleekgallery_image');

$TCA["tx_mojosleekgallery_image"] = array (
    "ctrl" => array (
        'title' => 'LLL:EXT:mojo_sleekgallery/Resources/Private/Language/locallang_db.xml:tx_mojosleekgallery_image',
        'label' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
        'cruser_id' => 'cruser_id',
        'languageField' => 'sys_language_uid',
        'transOrigPointerField' => 'l18n_parent',
        'transOrigDiffSourceField' => 'l18n_diffsource',
        'sortby' => 'sorting',
        'delete' => 'deleted',
        'enablecolumns' => array (
            'disabled' => 'hidden',
        ),
        'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'Configuration/TCA/tca.php',
        'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'Resources/Public/Icons/icon_tx_mojosleekgallery_image.gif',
    ),
    "feInterface" => array (
        "fe_admin_fieldList" => "sys_language_uid, l18n_parent, l18n_diffsource, hidden, title, description, image",
    )
);


$tempColumns = Array (
    "tx_mojosleekgallery_enable" => Array (
        "exclude" => 1,
        "label" => "LLL:EXT:mojo_sleekgallery/Resources/Private/Language/locallang_db.xml:tt_content.tx_mojosleekgallery_enable",
        "config" => Array (
            "type" => "check",
        )
    ),
);
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);


$GLOBALS['TCA']['tt_content']['palettes']['7']['showitem'] .= ',tx_mojosleekgallery_enable';

/*
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content",$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes("tt_content","tx_mojosleekgallery_enable;;;;1-1-1");
*/


?>
Something went wrong with that request. Please try again.