Due to the new menusystem it's impossible to add multiple overrides for node/% where each of them would be a nodetype specific presentation.
Since the D6 menu system allows only one menu per path it's only possible to define one node/% page panel.
Do you have any plans for panels to support this feature?
Comments
Comment #1
miro_dietikerAs i've seen merlinofchaos is actually working on a menu path delegation utility.
This solves right exactly what we miss and this issue addresses here and will bring the solution to us for the next code iteration of panels.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/ctools/dele...
I'll post a workaround here if someone needs a temporary solution. This problem won't be fixed in Panels 2 but are subject for redesigned Panels 3 using ctools.
Comment #2
omerida commentedmiro -
you say that this won't be fixed in Panels2, does that mean we won't be able to use panels to provide content-type specific layouts at node/% ?
what is the workaround?
Comment #3
patchak commentedI also really need this functionnality badly as I really got used to override all my nodes with panels, so I can easily insert fields, views, etc.
I hope this functionnality is available in panels 2 anyway...Any chance to see a fix or workaround soon ??
Patchak
Comment #4
samhassell commentedsubscribing. i would appreciate a workaround, if there is one.
Comment #5
pisco23 commentedsubscribing. and in the meantime - Happy Holidays to everyone working on the great Panels (and Views, and and and... all the rest), and thanks for all the great developments in 2008 ;-)
Comment #6
miro_dietikerMy workaround was to catch node/% using an own module panelshack and delegate it to node-CONTENTTYPE/%...
I coded the cases i needed to support by hand.
Module to capture node/% which is pretty ugly
For contenttype book just add a panel page "node-book/%" and give it the name "book" to avoid namespace conflicts. The addressing of the panels page is finally DONE VIA NAME as the first forwarding parameter.
If you need titles to work too, you need to add the delegations of the title calls too. Remember, it's a prototype hack and has nor access nor error checking.
Panels 3 with ctools delegator will implement kinda this fully transparent and automatically.
Comment #7
patchak commentedHello! This seems to work very well, I can live with building separate panel pages until this issue is fixed for good, unfortunately I can't wait and I can't work with drupal 5 either, so your solution seems the best compromise...
Could you tell me how I can pass the title from the node, so I can use %title as the page title please??
Thanks for this code,
Patchak
Comment #8
patchak commentedHey there, me again, it seems it does not work for multiple content types ?? I've tried to do it for another content type, adding the content type name directly in the module and also creating another panel page with nodeID as the argument...
I can override the content of the node and post custom content, it will display. But whenever I try to use something from the context, it does not work, the content does not show as if the context part was not working at all...
So the question is this : is this code supposed to work with context, or not at all ?? Have you tested it with multiple content types?? what is needed so that this would work with multiple node types using context ??
Thanks !
Patchak
Comment #9
patchak commentedWhat is not clear for me is if I need to create a different panel page for each content type I need to override, or is there somehow a way to use the same panel page for all the node types??
I tried to build one panel page for each content type, but any content that depends on context does not print...
Any details on how to set this up would be greatly appreciated!!
Patchak
Comment #10
weimeng commentedSubscribing.
Comment #11
patchak commentedmatafleur : have you tested this module ? Feedback on this would be great!!!
Patchak
Comment #12
timmeh commentedi'm subscribing too.
just to make sure we are on the same page, this is a patch to fix the broken node% override in panels 2 in D6 correct?
miro, what am i suppose to do with that code you pasted? anyone have any advice?
Comment #13
sdboyer commentedSo this is, like, 5x times over a duplicate, but more importantly...the original issue here has been fixed in -dev!
So to clarify: we are going to be dead-ending the 2.x branch in favor of 3.x, but I am rolling one more release of the 2.x branch which will include the displays-per-context-switching that we all know and love from D5. It'll be out in the next few days.