[TYPO3-shop] Show category relation in Backend
Franz Holzinger
franz at ttproducts.de
Sat Aug 9 19:45:49 CEST 2014
Hello Michael,
On 08/08/2014 09:57, Michael Schumann wrote:
> Hello Franz,
>
> thanks for this solution, but it´s not work in my environment. The same view
> as before :-(
>
> The modification that you say is like this?
> http://www.directupload.net/file/d/3708/ytcujvn2_jpg.htm
I cannot reproduce this error any more after this last fix. Maybe you
need to clear all caches.
The file ext_tables.php of tt_products is still read in by TYPO3 6.2.
You can try to put the tt_products $TCA inside of the file
tt_products.php in the directory Configuration/TCA/. However this is not
needed on my TYPO3 6.2 environments.
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$whereCategory = '';
if (
isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['where.']) &&
is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['where.']) &&
isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['where.']['category'])
) {
$whereCategory =
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['where.']['category'];
}
$imageFolder =
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['imageFolder'];
if (!$imageFolder) {
$imageFolder = 'uploads/pics';
}
$result = array(
'ctrl' => array(
'title' =>'LLL:EXT:' . TT_PRODUCTS_EXT . '/locallang_db.xml:tt_products',
'label' => 'title',
'label_alt' => 'subtitle',
'default_sortby' => 'ORDER BY title',
'tstamp' => 'tstamp',
'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'versioningWS' => TRUE,
'origUid' => 't3_origuid',
'delete' => 'deleted',
'enablecolumns' => Array (
'disabled' => 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
'fe_group' => 'fe_group',
),
'thumbnail' => 'image',
'useColumnsForDefaultValues' => 'category',
'mainpalette' => 1,
'iconfile' => PATH_ttproducts_icon_table_rel . 'tt_products.gif',
'dividers2tabs' => '1',
'transForeignTable' => 'tt_products_language',
'searchFields' => 'uid,title,subtitle,itemnumber,ean,note,note2,www',
),
'interface' => array (
'showRecordFieldList' =>
'hidden,starttime,endtime,fe_group,title,subtitle,keyword,accessory_uid,related_uid,itemnumber,ean,shipping_point,price,price2,discount,discount_disable,creditpoints,deposit,graduated_price_enable,graduated_price_round,graduated_price_uid,article_uid,note,note2,note_uid,text_uid,download_type,download_info,download_uid,category,address,inStock,basketminquantity,basketmaxquantity,tax_id,weight,usebydate,bulkily,offer,highlight,bargain,directcost,color,color2,color3,size,size2,size3,description,gradings,material,quality,additional,damcat,unit,unit_factor,www,datasheet,special_preparation,image,smallimage,sellstarttime,sellendtime,shipping,shipping2,handling,dam_uid'
),
'columns' => array (
't3ver_label' => array (
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel',
'config' => array (
'type' => 'input',
'size' => '30',
'max' => '30',
)
),
'hidden' => array (
'exclude' => 1,
....
...
return $result;
- Franz
More information about the TYPO3-project-tt-products
mailing list