[TYPO3-dam-devel] RFC #9646: DAM does not honour config['selectedListStyle'] and config['itemListStyle']

Uschi Renziehausen typo3news at otherone.de
Thu Nov 6 20:08:12 CET 2008


Dan Osipov wrote:
> Same...
> 

Dammmm. Are you on typo3 4.2-dev as I am? it works in my and ben's 
installation.

Uschi
> 
> Dan Osipov
> Calkins Media
> http://danosipov.com/blog/
> 
> Uschi Renziehausen wrote:
>> Hi Dan,
>>
>> put these lines into your_doc_root/ext_tables.php
>>
>> t3lib_div::loadTCA('tx_dam');
>> $TCA['tx_dam']['columns']['category']['config']['itemListStyle'] = 
>> 'width:280px;height:400px;';
>> $TCA['tx_dam']['columns']['category']['config']['selectedListStyle'] = 
>> 'width:260px';
>>
>> t3lib_div::loadTCA('tx_dam_cat');
>> $TCA['tx_dam_cat']['columns']['parent_id']['config']['itemListStyle'] 
>> = 'width:280px;height:400px;';
>> $TCA['tx_dam_cat']['columns']['parent_id']['config']['selectedListStyle'] 
>> = 'width:260px';
>>
>> Uschi
>>
>> Dan Osipov wrote:
>>> Tried placing it at the end of that file as well, and still get no 
>>> results - category field same size as before...
>>>
>>
>>
>>
>>> Dan Osipov
>>> Calkins Media
>>> http://danosipov.com/blog/
>>>
>>> Uschi Renziehausen wrote:
>>>> Hi Dan,
>>>>
>>>> Dan Osipov wrote:
>>>>> I applied the patch, and inserted the two lines into ext_tables, 
>>>>> yet the categories field is the same height as before...
>>>>> I have no categories in my installation - should it automatically 
>>>>> expand if I have more than fit?
>>>>
>>>> Hmm, it is heigher in mine and in ben's installation. perhaps the 
>>>> setting is overridden again?
>>>> $GLOBALS['T3_VAR']['ext']['dam']['TCA']['category_config'] is 
>>>> defined in  tca_media_field.php, and this is where I made the change 
>>>> myself. Not sure about the inclusion order right now.
>>>>
>>>> autoSizeMax only applies to the field with the selected items, so it 
>>>> is of no help for the category tree.
>>>>
>>>> Uschi
>>>>>
>>>>> Dan Osipov
>>>>> Calkins Media
>>>>> http://danosipov.com/blog/
>>>>>
>>>>> Uschi Renziehausen wrote:
>>>>>> Hi folks,
>>>>>>
>>>>>> I have made a new version of the patch, because while trying to 
>>>>>> find a decent field order I found that one more thing is missing.
>>>>>>
>>>>>> When editing metadata manually, on top of Tab Overview some data 
>>>>>> that have been added by automatic indexing are shown:
>>>>>> - the (internal) title,
>>>>>> - the filename,
>>>>>> - dimensions, filesize and color space (images only)
>>>>>>
>>>>>> What is missing here is the filepath. To see it, becomes important 
>>>>>> especially if you open up the edit form coming from Media>List. 
>>>>>> Currently, to see the path, you have to scroll down until you come 
>>>>>> to the Files section, which should be moved to Extra data, because 
>>>>>> you cannot edit it and it just blows up tab Overview.
>>>>>>
>>>>>> Unfortunately all the stuff that is displayed on top is hardcoded 
>>>>>> in that field is hardcoded in dam/lib/class.tx_dam_tcefunc.php.
>>>>>> For immediate needs (target version 1.1) I have added the filepath 
>>>>>> hardcoded, in future versions this should become configurable.
>>>>>>
>>>>>> Other than that no visible changes are made so far. The patch just 
>>>>>> ensures three things:
>>>>>>
>>>>>> - Have relevant info from autoindexing at hand on top of Overview.
>>>>>> - Enable the ability to resize the category field via $TCA via the 
>>>>>> usual means which is currently impossible.
>>>>>>
>>>>>> I also attach too more screenshots, one of them annotated.
>>>>>>
>>>>>> Prosit, Uschi
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Uschi Renziehausen wrote:
>>>>>>> This is a SVN patch request.
>>>>>>> Branches: dam trunk, dam_index trunk
>>>>>>> BT Reference:
>>>>>>> Problem: http://bugs.typo3.org/view.php?id=9646
>>>>>>>
>>>>>>> When you try to get larger fields for selected item and the item 
>>>>>>> list for assigning categories you will not get anywhere whith the 
>>>>>>> usual $TCA settings
>>>>>>> $TCA[theTable]['columns']['config']['selectedListStyle'] and
>>>>>>> $TCA[theTable]['columns']['config']['itemListStyle']
>>>>>>>
>>>>>>> This is bad when you try to get larger fields for the category 
>>>>>>> stuff (selecting a parent category or applying categories to 
>>>>>>> media items)
>>>>>>>
>>>>>>> DAM insists on a width of 200px for the selectedList and a height 
>>>>>>> of 96px for the height of the itemList.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Solution:
>>>>>>>
>>>>>>> Teach tx_dam_tceFunc->getSingleField_selectTree() to respect the 
>>>>>>> appropriate TCA settings.
>>>>>>>
>>>>>>>
>>>>>>> How to test this patch:
>>>>>>>
>>>>>>> In an extTables.php loaded after dam define the following:
>>>>>>>
>>>>>>> $GLOBALS['T3_VAR']['ext']['dam']['TCA']['category_config']['itemListStyle'] 
>>>>>>> = 'width:280px;height:400px;';
>>>>>>> $GLOBALS['T3_VAR']['ext']['dam']['TCA']['category_config']['selectedListStyle'] 
>>>>>>> = 'width:260px';
>>>>>>>
>>>>>>> Note: I want to put the category selection into an own tab. 
>>>>>>> Especially the fact that the current itemList is only 96px high 
>>>>>>> just drives me nuts as an editor.
>>>>>>> To get an impression of what I am trying to achieve see the 
>>>>>>> attached screenshot.
>>>>>>>
>>>>>>> Prosit, Uschi
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------ 
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------ 
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------ 
>>>>>>
>>>>>>


More information about the TYPO3-team-dam mailing list