I've done a bunch of searching but haven't quite found a solution. I have a problem where views and panel 'pages' lose their menu and breadcrumb paths. For example I have a menu with (doing this for a school district):

District
-- Human Resources
-- Technology
---- Technology Staff (a view)
---- Technology News (a panel)
---- Service Requests
---- etc

If I click on Service Requests (a regular page) the menu stays expanded and the breadcrumb is 'Home - District - Technology - Service Requests'. If I click on Technology Staff or Technology News the menu collapses and the breadcrumb becomes 'Home - Technology Staff' (or News).

I thought it was a problem with Views so I tried a panel page (Panels 2) to get around it and the same problem happens with Panels. I'm guessing things break because Panels and Views are not 'nodes' and perhaps the menu system only works properly with nodes. It seems like this problem would happen to a ton of people though.. anyone who has a menu item as part of their View or Panel.

The only solution I have found to date is to create a regular page and then embed PHP code to show the view.. but this will cause problems with 'regular' users.. and it's a security issue.

Thanks for any suggestions.

Brian

Comments

pobster’s picture

Use the custom breadcrumbs module, it's frickin' awesome.

Pobster

FunkMonkey’s picture

Thanks for the suggestion!

I just tried installing it but it seems to only want to provide a custom breadcrumb for a 'Node Type'.. but views and panels aren't node types.. so it doesn't seem to work with those.. I don't see either of them in the Node Type dropdown. Or am I missing something?

pobster’s picture

Use the 6.x-2.x branch it has Views and Panels support...

Pobster

FunkMonkey’s picture

I'll give it a try. I think it's still in Dev but I can certainly see if it'll get the job done. Thanks!

Update: Doh.. the Dev version gave me the 'whitescreen of death' on the View page and for some reason made it so my homepage wouldn't load (?!). Had to take it off for now.

pobster’s picture

Perhaps try http://drupal.org/project/menutrails instead?

Pobster

FunkMonkey’s picture

I was already using Menu Trails and they didn't quite give me what I needed. Seems the panel-nodes in Panels 3 allow the panel to be treated as any other node.. so it works well with the menu and breadcrumb system. You can embed views and such in the panel so it's giving me what I need. Shweeet!

Thanks for the ideas pobster.

Brian

Draven_Caine’s picture

your solution is only 1/2 way there
With advanced profile kit you need to use panels 2, which makes you un-able to use panels 3 with all of merlinofchoas' nice new features sadly.

michelle’s picture

No one is supposed to be using APK before it goes to Panels 3, anyway. Those that have ignored my advice are in for a rough upgrade.

Michelle

Draven_Caine’s picture

apk work awsome with panel and such ... panels lacks on the breacrumb issue. you have done awsome work Michelle.

My post was more pointing out that not everyone can use panels 3 due to other needs so custom breadcrumbs and panels 3 isnt always an option.

michelle’s picture

Panels 2 is going away. Probably within days. So what Panels 2 does or doesn't do won't matter shortly.

Michelle

Draven_Caine’s picture

sheesh .. /sigh
thye problem was there one person pointed out a solution and i was pointing out the issues i ran into to try be helpful, guess ill think twice about being helpful again /sigh

i'll just stick to email, if anyone needs help feel free to email me or soemthing, i didnt mean to affend anyone, sorry

michelle’s picture

Has nothing to do with being offended; I'm just correcting bad advice. People shouldn't be using APK yet and telling someone they should not use P3 because APK doesn't work with it yet is harmful advice so I stepped in. To be honest, though, I'm not sure what APK has to do with this thread since the OP isn't even using it.

Michelle

Draven_Caine’s picture

i was simply pointing out one module that uses panels 2 still, i have a few modules that use panels 2.
I have the same issue witht he breadcrumbs with panels 2 which is fixed in panels 3 but i cant upgrade sadly since i have 3 -4 modules that still use panels 2

Panels page says
panels 3 is sopported but not recommended
panels 2 is recommended for drupal 6

I can only run off the info i read honestly, this is what merlinofchaos has written not me.

michelle’s picture

What 3-4 modules have Panels 2 as a dependency?

At any rate, this is what you said:

your solution is only 1/2 way there
With advanced profile kit you need to use panels 2, which makes you un-able to use panels 3 with all of merlinofchoas' nice new features sadly.

Which is what I was responding to. You were telling the OP that he can't use Panels 3 because of APK, which doesn't even make sense in light of the fact that the OP isn't using APK. But, if he were, the advice would be incorrect since APK will be using Panels 3 shortly. That's all I was saying. If what you meant to say is that you aren't able to make use of the advice on this thread, well, fine, but that isn't what you said.

Michelle

Draven_Caine’s picture

I was saying some module use panels 3, and some use panels 2. they have diffrent API so it is what it is based on the module's programers.

Its basiclly APK was an example, ill use a diffrent example next time.

Draven

michelle’s picture

You could simply say what you mean at the start. If you had said "I can't use this advice because I am using modules that require P2" I wouldn't have even responded to this thread. I only responded because you told the OP that he can't use P3 because of APK which isn't true and needed to be corrected.

Anyway, I'm done with this. I never meant to get into this round and round about what you said vs what you meant. I simply wanted to correct bad advice. That's all.

Michelle

FunkMonkey’s picture

Thanks for mentioning APK Draven. I hadn't heard of it before. Guess I'll wait til it's ready for Panels 3 but I think I'd have a use for it on our staff profile pages. I'm brand new to Panels so it'll take me a while to wrap my head around them anyway!

Brian

Draven_Caine’s picture

Me and my girl run a creative freedom website, i also test alot of modules for the programs and try to break modules for them.

Here is my profile : http://www.shattered-broken.com/Members/Draven
please keep in mind that there is alot of css work, rules, panels, content profile work on those profiles but i am very happy to help.