[TYPO3-ect] Taxonomies / categories II
Mads Brunn
mads at typoconsult.dk
Tue Oct 23 22:12:58 CEST 2007
Hi Steffen
Steffen Kamper wrote:
> we would like to use your categories for cal, this would be a good
thing for
> the goals of ECT.
> This would be a new categoryService. It doesn't look as complicated as cal
> is using MVC and as i mentioned all category-depending code is in the
> categoryService.
That's great news :-)
> For Flexforms and BE TCEforms atm a userfunction is used to display the
> tree. I didn't tried, but you use a simular, may be your userfunc could be
> used.
> Also BEuser and BEgroups has category access. I saw a simular in your ext,
> but I don't understand(because of the missing labels) - there are 2 forms:
> http://www.sk-typo3.de/stuff/beuser-cats.jpg
Yeah, I know - it's a bit misleading. The first field is used to set
category mounts for the user / group (sorry about the missing labels).
NOTICE: Mountpoints for be_users / be_groups has yet to be implemented
(will probably use tt_news as inspiration).
The other field is simply the category field which is created
dynamically for all tables (yes go ahead, categorize your be_users :-)).
> Could you give me an advice which class renders the tree and how it could be
> manipulated ?
EXT:categories/lib/class.tx_categories_treeview.php is the tree class
used for rendering the tree in BE-forms.
EXT:categories/lib/class.tx_categories_tce.php:tx_categories_tce->getSingleField_typeSelectCategoryTree
is the function that renders the category field. Notice: it creates the
category tree in an iframe. You can see how it's used in
EXT:categories/tca/tx_categories_tca.inc (which again is included in
EXT:categories/hooks/class.tx_categories_tceform.php:tx_categories_tceform->getMainFields_preProcess)
> I will start a prototype the next days, so i will ask you some more.
>
Looking forward to that!
./mads
More information about the TYPO3-team-extension-coordination
mailing list