How to put "edit this Page" link ?

poseidon123 - July 21, 2008 - 17:39

With little search I found this code to print the edit link of any node l("http://localhost/start/$node->nid/edit",NULL,NULL,NULL,FALSE,TRUE);

is this right code ? I am looking to put edit this node link in the template file but not sure about the correct code for it.

The link would be: l('Edit

davedelong - July 21, 2008 - 17:47

The link would be:
l('Edit this page', 'node/'.$node->nid.'/edit');

However, I'm not sure why you'd need this. Any privileged user would automatically see an edit tab. Are your permissions set up correctly?

Universal Edit Button

christefano - July 21, 2008 - 18:19

Perhaps we're about to see a Universal Edit Button module for Drupal?

The code didn't showed

poseidon123 - July 21, 2008 - 18:39

Yes the code worked :) but its being shown on all the nodes. I just want the edit link to be ONLY seen by the one who has the permission to edit the review.

Ok, here is what I am doing, I am showing teaser a node type at the bottom of different node type and I have removed the Title of the node in these teasers. so they have just become part of the Parent node. But I still want to give the edit link so the owner of the node can edit it. How to do it ?

I have found this http://11heavens.com/quick-edit-and-delete-links-for-the-Administrator and the last code (allowing the owner to edit it) is not workign !!!

Module available for edit

Dave Reid - August 23, 2008 - 01:52

Module available for edit links and universal edit button: http://drupal.org/project/admin_links

Thanks!

christefano - August 23, 2008 - 14:14

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.