Bug #1488
News tab not showing records
| Status: | New | Start: | 2008-09-09 | |
| Priority: | Should have | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
Description
Env: Typo3 4.2, PHP 4.2.6, TV
In RTE link wizards the tabs 'News' and 'Record' are regularly showed. After the selection of the 'News' tab, the expected pages are showed, but clicking on a page containing the news records cause the wizard switch back to the 'Page' tab.
Installation steps:
1) installed "linkhandler" extension2) add linkhandler extension template
3) defined linkhandler.newsSinglePid=27 in the config of root template
4) defined in root page TSConfig:
RTE.default.tx_linkhandler {
record {
label=Records
listTables=*
}
tt_news {
label=News
listTables=tt_news
onlyPids=25
}
}
mod.tx_linkhandler {
record {
label=Records
listTables=*
}
tt_news {
label=News
listTables=tt_news
onlyPids=25
}
}
Watchers
History
2008-10-10 10:15 - Jochen Rieger
I can confirm this, T3 4.2.2 and 4.2.1, latest Debian PHP 5.2.0
I implemented a really dirty hack to make it work... unfortunately I did not have the time to find a proper solution:
File: class.tx_linkhandler_browselinkshooks.php
Function: parseCurrentUrl($href,...)
before returning $info I added these lines:
// this is the only way to prevent the dialog from jumping back to the pages tab when clicking on a folder
$info['act'] = 'tt_news';
Ugly, but at least made it work for selecting tt_news records in the dialog window.
2008-10-10 10:36 - Jochen Rieger
- File class.tx_linkhandler_browselinkshooks.php added
Hi Thomas,
in my environment it is working for tt_news records (didn't try "records" in general ... for sure you would habe to change the string then accordingly). I attached the hacked file. You will find two positions containg "// CAG JR" as a notice for the changes I made there. Maybe that will help ya out?!
2008-10-10 11:22 - Thomas Loeffler
It works, but it's a really bad hack.:)
I hope, there will be an update in the next days or weeks to fix that.
Thanks a lot, Jochen!
2008-11-12 09:16 - Simon Schick
- File 1488.patch added
I've added a new patchfile wich should fix this bug in a better way.