[TYPO3-dev] sorting of DAM assets in mm-table
Thomas Mammitzsch
typo at pure.kicks-ass.net
Tue Feb 12 17:02:44 CET 2008
hi list,
i try to make assets sortable within a category. I think that should be
done within the category tceform of dam_catedit (showing all assets in
that category within a single multiselect field with sort buttons, like
the original tca type select).
i think the "sorting_foreign" column in the "tx_dam_mm_cat" is provided
for that, although there is no such functionality in dam yet.
Unfortunately i don't have any idea how to write the sorting (once that
custom select field is ready) to that "sorting_foreign"-column in the
mm-table.
At the moment i have added a new field to tx_dam_cat in TCA to get the
preselection of assets in the category i'm editing.
'membersorting' => array(
'exclude' => '1',
'label' => 'membersorting',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_dam',
//'itemsProcFunc' => 'user_dam_sorting->main',
'size' => 10,
'maxitems' => 20,
'MM' => 'tx_dam_mm_cat',
'MM_opposite_field' => 'uid',
'MM_table_where' => 'AND tx_dam_mm_cat.uid_foreign=7',
)
),
As you can see i tried an itemsProcFunc which is working well for
preselecting records by category. The "MM" config settings didn't work
for me for a preselection. Is there a predefined method to fill a
sorting_foreign-column i can use?
regards, Thomas
More information about the TYPO3-dev
mailing list