[TYPO3-dam] indexing and file order

Matyi Gábor gmatyi at freemail.hu
Wed Jan 23 09:24:34 CET 2008


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