0

I have a content type 'child'. And I have give the permission to authenticated user to create child node. Its working fine. But I need to show current user created node in user profile page with edit mode so user can easily updated own created node. For this I have created views but I am not getting any option to show a created node as a edit form.

0

You have to give permission for Edit own page for that role to see "Edit link" in views or any other page.

Tha can be available from

www.example.com/people/permissions -> <Content Type>: Edit own content

You have to create a module for showing your custom link in user profile page

function <modulename>_menu() {
 $items['user/%user/<yourlink>'] = array(
    'title' => 'Your Pages',
    'page arguments' => array(1),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
 return $items;
}

Not to mention you have to clear cache after the this.

3
  • Permission is working fine.. I need to show node on profile page with edit mode.
    – jsh
    May 26 '16 at 8:26
  • Update my answer please refer.
    – NTT
    May 26 '16 at 8:35
  • I need to show whole form in edit form with submit and delete button.And one user can create more than one link.
    – jsh
    May 26 '16 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.