This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_tables.php
68 lines (61 loc) · 2.74 KB
/
ext_tables.php
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
<?php
if ( !defined( 'TYPO3_MODE' ) )
{
die( 'Access denied.' );
}
///////////////////////////////////////////////////////////
//
// INDEX
// Methods for backend workflows
// Get extension configuration
// Add static template
// Add pagetree icons
///////////////////////////////////////////////////////////
//
// Methods for backend workflows
require_once(t3lib_extMgm::extPath( $_EXTKEY ) . 'lib/userfunc/class.tx_quickshop_userfunc.php' );
// Methods for backend workflows
////////////////////////////////////
//
// Get extension configuration
$confArr = unserialize( $GLOBALS[ 'TYPO3_CONF_VARS' ][ 'EXT' ][ 'extConf' ][ 'quick_shop' ] );
if ( empty( $confArr[ 'tcaProductOrdering' ] ) )
{
$TCA[ 'tx_quickshop_categories' ][ 'ctrl' ][ 'default_sortby' ] = 'ORDER BY title';
}
else
{
$TCA[ 'tx_quickshop_products' ][ 'ctrl' ][ 'sortby' ] = 'sorting';
}
if ( !empty( $confArr[ 'products_on_standardpages' ] ) )
{
t3lib_extMgm::allowTableOnStandardPages( 'tx_quickshop_categories' );
t3lib_extMgm::allowTableOnStandardPages( 'tx_quickshop_dimension' );
t3lib_extMgm::allowTableOnStandardPages( 'tx_quickshop_material' );
t3lib_extMgm::allowTableOnStandardPages( 'tx_quickshop_products' );
t3lib_extMgm::allowTableOnStandardPages( 'tx_quickshop_shippingcosts' );
}
// get extension configuration
////////////////////////////////////
//
// Add static template
t3lib_extMgm::addStaticFile( $_EXTKEY, 'Configuration/TypoScript/62037/', 'Quick Shop [1] Basis' );
t3lib_extMgm::addStaticFile( $_EXTKEY, 'Configuration/TypoScript/Caddy/', 'Quick Shop [2] + Caddy' );
t3lib_extMgm::addStaticFile( $_EXTKEY, 'Configuration/TypoScript/Caddy/ShippingDhlPackage/', 'Quick Shop [2] + Caddy shipping DHL Package in Germany' );
t3lib_extMgm::addStaticFile( $_EXTKEY, 'Configuration/TypoScript/Imagecycle/', 'Quick Shop [9] + ImageCycle: no conflict' );
// Add static template
////////////////////////////////////////////////////////////////////////////
//
// Add pagetree icons
$TCA[ 'pages' ][ 'columns' ][ 'module' ][ 'config' ][ 'items' ][] = array( 'Quick Shop', 'quickshop', t3lib_extMgm::extRelPath( $_EXTKEY ) . 'ext_icon.gif' );
// 120613, dwildt, 1-
//$ICON_TYPES['quick_shop'] = array('icon' => t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif');
// 120613, dwildt, 1+
t3lib_SpriteManager::addTcaTypeIcon( 'pages', 'contains-quickshop', '../typo3conf/ext/quick_shop/ext_icon.gif' );
// Add pagetree icons
/////////////////////////////////////////////////
//
// Add default page and user TSconfig
require_once( PATH_typo3conf . 'ext/quick_shop/Configuration/PageTS/TxLinkhandler/Default/tx_quickshop_products.php' );
// Add default page and user TSconfig
?>