Question on User profile template

Events happening in the community are now at Drupal community events on www.drupal.org.
hasc's picture

Hi,

i hope this is the right place to post a question. I am using Panels 3 and I wanted to use panels for the user profile pages (basically View and Edit). So i activated the "User profile template" and added a variant. After creating a variant without a specific selection rule the panel was displayed when i visited a users page (users/username).
I did not manage to display a panels page at the user edit pages. I created a selection rule for the logged in user = user being viewed but this variant was never chosen.
So my question is, how to i get panels to be used when i access pages like user/2/edit*?

Any help would be great.

Regards,
hasc

Comments

Any luck

cap60552's picture

Did you have any luck with this? I too am having a hard time making this work for /user/#/page

I think you have to create a

msumme's picture

I think you have to create a new panel page with the path user/%/edit or user/%user/edit

You can't just make a variant of user/% or user/%user (i forget which one is used in panels for that...)

essentially it's the same thing as the menu hook in modules, where the path fires a callback. In panels, you're basically overriding the callback by defining a new callback (the panel page) when that path is called.

Hope that helps a little...

Panels

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: