I'm currently using nodeprofiles to provide an extended profile to my users.
When editing a page in the userprofile, I can choose a tab which page to edit, but on saving I'm getting back to the main userprofile page, and not to the edit-page.
Getting the editable pages on a pageroute is not very difficult, but shadowing the standard "Edit" tab in the userprofile with this edit-pageroute is what I didn't manage to do yet.
Any hints on how to achieve that?

Comments

fago’s picture

Status: Active » Fixed

you can already use the pageroute nodefamily module for this, although it doesn't manage nodefamilies yet.

Yo can already associate a content type with a pageroute, and so the edit link 'll lead you to your route.

ray007’s picture

I already did manage to bring all pages I want into a pageroute.
What I could use a hint for is how to map this route to path 'user//edit' so my handcrafted pageroute for editing the userprofile shadows the "standard" editing for the userprofile. And the pageroute tabs should become the secondary tabs below the primary "My Account" tabs. If that's already possible I haven't yet figured out how to do it.

ray007’s picture

Just saw the typo in my last post, I meant to map the route to path 'user/<uid>/edit' ...

I guess the silence means "not yet possible", right?

fago’s picture

sry for the late reply.

And yes, that's not yet possible. However, if you like you could use some custom coding and the subform_element to inject pageroute pages into the usual user/XX/edit pages through hook_user op form.

ray007’s picture

Thanks for the hint, but I'm afraid without some more direct pointers I have to pass on that for now.

fago’s picture

hm, I've nothing more too say. Do you have more specific questions?

ray007’s picture

Will do some more code reading to see how things work, but the question is: how do I shadow the user/<uid>/edit request-path and bring the page-route in as secondary tab-row?
And not have 2 rows of submit-buttons ...

fago’s picture

by using the usual hook_user. The subform element allows you to inject the whole pageroute form into the user edit form, however you have to care yourself about duplicated buttons, .e.g just unset any pageroute buttons.

You might have a look at nodeprofiles registration and user edit categories integration which does the same: it uses the subform element to inject nodeprofile forms with hook_user

ray007’s picture

Thanks, will give it a try.

Anonymous’s picture

Status: Fixed » Closed (fixed)