[TYPO3-calendar] plugin.tx_cal_controller.view.category.tree.category / calendar

PM patrickm87 at gmx.de
Tue Jan 8 10:34:48 CET 2013


1. Problem

File: class.tx_cal_base_view.php

Function: list_legend(&$return)

There one finds:
$this->conf['view.']['category.']['tree.']['category'] = 
$this->conf['category'];
$this->conf['view.']['category.']['tree.']['calendar'] = 
'0,'.$this->conf['calendar'];

So the configuration is ALWAYS overwritten.


2. Problem
If one comments out the first line 
($this->conf['view.']['category.']['tree.']['category'] = 
$this->conf['category'];)
Then:
only categories in
$this->conf['view.']['category.']['tree.']['category']
are selected in the the tree view and the other aren't.

BUT: Description of this configuration parameter says:
"# @description Defines the categories shown in the tree (csv of ids)"

So either Description or Handling WRONG!




3. Problem
If one comments out the second line 
($this->conf['view.']['category.']['tree.']['calendar'] = 
'0,'.$this->conf['calendar'];)

Then the legend really shows only the calendars in that where defined in 
$this->conf['view.']['category.']['tree.']['calendar'].

That is Correct.

BUT: if one sends then the "category-selection-form", all the categories 
from the calendars that are not shown disappear from the calendar-view.
THIS is the wrong behavior in my opinion.
BEHAVIOR should be:
The categories from calendars that are not shown in the legend, should 
always be displayed in the calender-view.



Does one of the administrators of Typo3-cal read this mailing list?
If not: Do I have to open a bug report in forge?



Am 04.01.2013 18:56, schrieb PM:
> I tried to use
>
> plugin.tx_cal_controller.view.category.tree.category = 3
> plugin.tx_cal_controller.view.category.tree.calendar = 1
>
> to choose the categories and calendars that can be seen in the legend
> (selector of categories).
>
> But it seems, that both parameters don't limit anything. I always see
> all my categories and calendars.
>
>
> Has anyone an idea how to select the categories that should be
> shown/selectable in the legend?



More information about the TYPO3-project-calendar mailing list