[TYPO3-dam] indexing and file order

georg kuehnberger georg at georg.org
Fri Jan 25 00:19:06 CET 2008


Gabor,
please try to reproduce the sort-order thing with the latest dam version 
from svn, see link below, and report back;
regards georg

http://wiki.typo3.org/index.php/Dam#Install_the_.27cutting_edge.27_svn_head_version



Matyi Gábor wrote:
> Hi!
> 
> Yes I speak about the Element Browser. There isn't here any sort function. But I don't understand again, why sometimes the files are indexed in a mixed file order?
> 
> Thanks for try the link. I use the dam 1.0.11 and I modified according the page, but I don't have sort function. This is the modified code:
> 
> if ($disallowedFileTypes) {
>     $extList = '"'.implode ('","', $disallowedFileTypes).'"';
>     $this->damSC->selection->qg->addWhere('AND tx_dam.file_type NOT IN ('.$extList.')', 'WHERE', 'NOT tx_dam.file_type');
> }
> 
> // gk at plan2.net - 20061119 - add sorting order: latest changed record should be shown first - START
> $this->damSC->selection->qg->addOrderBy('tx_dam.tstamp DESC', 'tx_dam');
> // gk at plan2.net - 20061119 - add sorting order: latest changed record should be shown first - EOF
> 
> $this->damSC->selection->execSelectionQuery(TRUE);
> 
> by
> 
> Gabor 
> 
> 3000 IT, pénzügyi, értékesítői, műszaki, marketinges Á L L Á S a jobline.hu-n!http://ad.adverticum.net/b/cl,1,6022,243335,288154/click.prm


More information about the TYPO3-project-dam mailing list