Closed (fixed)
Project:
OG Panels
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2010 at 15:35 UTC
Updated:
13 Apr 2010 at 03:10 UTC
When creating multiple panel pages per group, the non-Home page panel pages don't have their page title set correctly.
The code on line 484-486 of og_panels.module appears to set the title of the page to the current panel, but in reality, every panel page for the OG has the same title as the OG node.
-mike
Comments
Comment #1
jimthunderbird commentedThis issue can be fixed by modifying function og_panels_nodeapi($node, $op) in og_panels.module, make it look like the following:
Comment #2
ultimikeJim,
This change doesn't work for me - all of my non-home page OG panel pages still have the title of the OG home page. Your fix seems like it would attempt to set the title of every page on site, shouldn't it only be focused on OG panel pages?
Thanks,
-mike
Comment #3
jimthunderbird commentedHi Mike,
Thanks for the feedback. From what I observed, all og panel pages title are set properly except the home page one. I will come up with another fix later. Also, for you info, I'm running Drupal 6.16 and OG 6.x-2.1.
Best Regards,
Jim
Comment #4
jimthunderbird commentedUpdate: Please see #6 on the improved solution
Comment #5
ultimikeJim,
Thanks for the quick response, but I don't think your code will do the trick.
It looks like the query you're using in the "load" $op will grab the title of the default (home) panel for the OG in all cases. What I'm actually looking for is the title of the panel that the user is currently viewing (I believe this is gained via the panel's display ID). I've tried to figure out how to grab the display ID then perform a similar query to what you have above, but to no avail.
Know what I mean?
Thanks again,
-mike
Comment #6
jimthunderbird commentedHi Mike,
Thanks for the reply again. I've made another fix, just replace the og_panels_nodeapi function with the following and hopefully this works.
Best Regards,
Jim
Comment #7
jimthunderbird commentedI retested this fix and found that this is doing the trick.
Best Regards,
Jim
Comment #8
ultimikeJim,
Great - thank you. This looks good, seems to be working for me. I'll continue to test it on a dev site I have. In the meantime, I've changed the status to "needs review" so hopefully some other people can bang on it a bit.
Thanks for your help.
-mike
Comment #9
populist commentedgreat. commited.