Feature #5279
Major Feature: Using DAM Categories for wt_gallery
| Status: | New | Start date: | 2009-11-08 | ||
|---|---|---|---|---|---|
| Priority: | Could have | Due date: | |||
| Assignee: | - | % Done: | 10% |
||
| Category: | - | ||||
| Target version: | - | ||||
| Votes: | 0 |
Description
Making DAM categories choosable in Flexform:
<damCat>
<TCEforms>
<exclude>1</exclude>
<label>DAM Cat</label>
<config>
<type>select</type>
<form_type>user</form_type>
<userFunc>EXT:dam/lib/class.tx_dam_tcefunc.php:tx_dam_tceFunc->getSingleField_selectTree</userFunc>
<treeViewBrowseable>1</treeViewBrowseable>
<treeViewClass>EXT:dam/components/class.tx_dam_selectionCategory.php:tx_dam_selectionCategory</treeViewClass>
<foreign_table>tx_dam_cat</foreign_table>
<size>6</size>
<autoSizeMax>20</autoSizeMax>
<minitems>0</minitems>
<maxitems>2</maxitems>
<default></default>
</config>
</TCEforms>
</damCat>
And than a overwrite function is needed - e.g. in listview:
$startpath = $this->div->validatePicturePath($this->piVars['category'] ? $this->div->hash2folder($this->piVars['category'], $this->conf['main.']['path']) : $this->conf['main.']['path']); $pictures = $this->div->getFiles($this->conf, $startpath, $this->conf[$this->mode . '.']['order'], $this->conf[$this->mode . '.']['limit']); $pictures = $this->div->newOverwriteFunction4DAMcategories($this); // overwrite pics with pics from category
This is just a first hint...
History
Updated by Joerg Hauke over 3 years ago
Hi Alex,
I've just seen, that you are working on a description extension for your gallery. Great!!!! But is it not much more convinient to integrate dam in wt_gallery? It does the same, doesn't it? And it would extend the usage of dam. Is there an advantage of creating it's own system for description instead of using an already existing system? I'm not a coder so I do not know, if there is an advantage, just tell me/us ;-)
Updated by Alex Kellner over 3 years ago
Hi Jörg,
You are right, but some projects are supported by someone who wants to spend some money or some code. That's why the additional extension was born.
Cheers, Alex
Updated by Joerg Hauke over 3 years ago
ok now I understand it.