Is it possible to make selection rules for USER/ and USER/%?

I would like to use USER/ as a dashboard pane for my users and USER/% as their profile page... but I haven't found the selection rule for it so far...

I placed dsm($contexts); on the Panels Selection Rules (PHP CODE) but havent found anything that could help me on that.

Help anyone? :)

Comments

merlinofchaos’s picture

Status: Active » Fixed

Drupal automatically forwards 'user/' to either 'user/UID' or 'user/login' if not logged in, so it is not possible to re-use that page without writing a menu task to override the behavior on this path. I'm not sure how difficult it would be to do this, honestly.

Sorry. :/

gilcpd’s picture

Thanks Merlin :)
I've been trying to make somehow 2 user pages... one to use as profile and another to use as user management.

I did it with a regular page... but I cant add User as a context to a regular page :(

Does anybody has any suggestion?

merlinofchaos’s picture

CTools 1.3 and Panels 3.3 should have allow the loggedin user to be added as a context.

gilcpd’s picture

Yeeeyyy!
Thanks Merlin I updated CTools and Panels it works perfectly!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.