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

Uschi Renziehausen typo3news at otherone.de
Mon Nov 3 09:12:58 CET 2008


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
> 
> 
> ------------------------------------------------------------------------
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dam-9646-honourTCAconfig-v2.patch
Type: text/x-patch
Size: 2680 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-dam/attachments/20081103/eb86889c/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dam-overview-original-annotated.png
Type: image/png
Size: 41404 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-dam/attachments/20081103/eb86889c/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adding-filepath-to-media-overview.png
Type: image/png
Size: 61044 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-dam/attachments/20081103/eb86889c/attachment-0003.png 


More information about the TYPO3-team-dam mailing list