[TYPO3-ttnews] 2 Bugs in tt_news 2.2.4 and archive-options
Franz Koch
typo at fx-graefix.de
Mon Nov 27 01:22:27 CET 2006
Hi,
I wrote the following 2 weeks ago as reply to the NG topic 'problem with LIST "only archived" in 2.2.4' but didn't get a reply so far (the topic might have been to old that anybody would have noticed my post). So here I post it again:
> There also seems to be a bug when selecting Archive:"don't care". If I don't care neither in FF nor in TS (plugin.tt_news.archive=0) there are no items showing up at all.
>
> I think this might be due to the following if-clause in the function displayList on line 754:
> --------------
> // Allowed to show the listing? periodStart must be set, when listing from the archive.
> if (!($this->arcExclusive > -1 && !$this->piVars['pS'] && $theCode != 'SEARCH')) {
> --------------
>
> I guess it should say "$this->arcExclusive > 0" - because "0" means "don't care" which also includes non-archived
> --------------
> // Allowed to show the listing? periodStart must be set, when listing from the archive.
> if (!($this->arcExclusive > 0 && !$this->piVars['pS'] && $theCode != 'SEARCH')) {
> --------------
>
>
>
> And there is another bug with $this->arcExclusive. The flexform can't override the TS-setting if "don't care" is selected, because:
> --------------
> $this->arcExclusive = $arcExclusive?$arcExclusive:$this->conf['archive'];
> -------------
> always overrides it with the TS-value if set to "don't care" (value 0 => false). So if I in general wan't to - let's say - show only NON-Archived, I can't set any tt_content-instance of tt_news to "don't care".
>
> I think the flexform should simply provide a 4th select-option with an empty value or anything else (maybe "ALL") as default setting with the label "use default global setting".
> In that manner I'd also rename the descriptions of the category-selection selectboxes from "Defined by TypoScript" to "use defalt global setting" or similar, because editors won't understand "TypoScript" ;) Let's get Typo3 more userfriendly with less cryptic descriptions :)
After modifying the mentioned two parts, everything worked like a charm. Can somebody confirm them as bug so that they can be added to bugtracker? I someone of you could add them (if confirmed) - I'd be very thankfull, because I won't sleep more than 4-6 hours a day and have work the rest of the time (what a week :( ).
--
Kind regards,
Franz Koch
More information about the TYPO3-project-tt-news
mailing list