TYPOlight version 2.6.2 available

TYPOlight version 2.6.2 is available. The maintenance release includes some powerful new features like the extension repository client, a pagination menu for articles, the memberlist module and the option to move news and events between archives.

Read the announcement  of all changes

ramjet
TYPOlight intermediate
Avatar
Posts: 201
hi all, i have 3 tables (tl_subject,tl_playlist and tl_playlistitem) representing three levels ...parent, child and child's child.
When i edit a playlistitem the "Go back" link returns me to the subject (first level) rather than the playlist (second level).
The link has an href of "do=ModuleName".
I assume it needs to say "do=ModuleName&table=tl_playlist"

Where can i change this to refer back to the middle table (list)?
2008-08-18 02:25
thyon
TYPOlight professional
Avatar
Posts: 1288
Cape Town, South Africa
i have never tried, never seen and i don't know if its even possible to make a 3-child relationship with TL like you have, but I guess its possible.

perhaps you have setup your DCA incorrectly. this has happened to me many times. check examples like Newsletter or News, which uses the parent child relationship.
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
2008-08-18 08:47
ramjet
TYPOlight intermediate
Avatar
Posts: 201
cheers thyon, but i can't find anything similar.
i figure it should be something to do with href in the global operations, but i don't see how to apply it to the go back link (it seems controlled from elsewhere?).
The 3 level arrangement works fine for me otherwise.... the good thing about not knowing what you're doing is that you don't know that you can't do it!! :)
2008-08-18 13:49
andreas.schempp
TYPOlight professional
Avatar
Posts: 1402
St. Moritz, Switzerland
I've seen this too. It only appears/happens when you have parent-child-child (type1-type4-type4) relations...
Für spezielle Modulwünsche oder Programmierungen als Auftrag könnt Ihr mich jederzeit per E-Mail an andreas@schempp.ch kontaktieren.

Feel free to contact me for custom modules or development as an order by e-mail to andreas@schempp.ch
2008-08-18 13:58
ramjet
TYPOlight intermediate
Avatar
Posts: 201
yes andreas, thats exactly how its set up. It just affects returns to the middle table.
Is this a bug?
Or is there something i can do to force the goback link to say "do=ModuleName&table=tl_playlist"
2008-08-18 14:02
andreas.schempp
TYPOlight professional
Avatar
Posts: 1402
St. Moritz, Switzerland
I use it like this - I think it's a bug ;)
Für spezielle Modulwünsche oder Programmierungen als Auftrag könnt Ihr mich jederzeit per E-Mail an andreas@schempp.ch kontaktieren.

Feel free to contact me for custom modules or development as an order by e-mail to andreas@schempp.ch
2008-08-18 14:33
leo
Administrator
Avatar
Posts: 6031
München, Germany
Please check against the latest version (2.6beta2). It includes a fix if I remember correctly.
2008-08-18 14:40
ramjet
TYPOlight intermediate
Avatar
Posts: 201
thanks leo, i'll test it
2008-08-18 14:42
ramjet
TYPOlight intermediate
Avatar
Posts: 201
Leo, it does exactly the same in 2.6 beta2.
Any idea how I can override it?

Very nice new version by the way... it installed easily, no problems at all yet... those "save and new" buttons are a treat! I'll play around more with it soon.
2008-08-19 07:21
ramjet
TYPOlight intermediate
Avatar
Posts: 201
iconQuote:
Please check against the latest version (2.6beta2). It includes a fix if I remember correctly.

It doesn't for me Leo, nor in 2.6.0 or 2.6.1
Could you tell me where the code is that creates these buttons so i can have a go at solving this?
I can't figure where the buttons are generated from.
2008-09-25 10:46
vu1tur
TYPOlight novice
Avatar
Posts: 1
Ukraine
The Back button is being generated in DC_* drivers. Usually that would be system/drivers/DC_Table.php.
So the trick is to add '&ptable=parent_table&pid=pid' to the edit (or whatever) button link of the child row and modify DC_Table.php to account for that (see the attached patch). Where parent_table and pid refer to a parent table we would like to get back to.

I have tested that trick on 3 tables (parent->child->child), but apparently any number of nested tables will do just fine.
2008-10-06 16:07
ramjet
TYPOlight intermediate
Avatar
Posts: 201
thanks very much vu1tur, i'll check this out.
2008-10-07 00:04
thyon
TYPOlight professional
Avatar
Posts: 1288
Cape Town, South Africa
just in case you missed this in the other post, but I forgot that the News Module does a 3-level parent-child-child, using below, so its worth a look.

tl_news_archive => tl_news => tl_news_comments
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
2008-10-20 12:47
ramjet
TYPOlight intermediate
Avatar
Posts: 201
Thanks Thyon...
i've been a bit sidetracked recently but i'll take a look soon at yours and vu1tur's suggestions.
2008-10-20 23:32
ramjet
TYPOlight intermediate
Avatar
Posts: 201
Hi,
vu1tur thanks, but i need to solve this without modifying any system files.
That was a great help to see whats happening....

Within $return (in the DC_Table.php),
iconCode:
$this->Input->('id')
returns a value ok, but
iconCode:
$this->Input->('pid')and $this->Input->('ptable')
do not return anything,
so the back button just points to the module startpage (?do=MyModule).
Thats the source of this problem

Thyon, the news module doesn't seem be modified anywhere to counter this that i can see.... although it is three-tiered it isn't of the sorting type (type1-type4-type4) like mine, but rather 1:4:2 so it may not affect it.

Andreas suggested it is a bug affecting only 1:4:4 sorting types, Leo said he "thought he fixed it", then ignored me when i said it wasn't, and vu1tur says you can modify DC_Table to get round it. So to me it sounds like a big bug.

Its beyond me. I would have had two modules released two months ago if it wasn't for two faults... this and a problem with the "save and edit button" also misdirecting when you go from the second table to the third.

Does anyone know how i can simply make the "saveNedit" button and the "goback" button not show from commands in the DCA?
Cheers, Murray.
2008-10-21 05:48
Total Members: 2987 Total Topics: 8156 Total Messages: 54357