Hi, I'm quite new to Drupal and I'm converting a Smarty template theme I used for a Postnuke site. Most things are working fine now but I seem to be missing the [edit] links on nodes and I can't figure out what it is.

I'm also using the Smarty templating engine for Drupal btw. But if you have any idea what generates the links on phptemplates I can work with that too.

Thanks in advance,

Nda

Comments

Nda’s picture

Anyone? :(

Nda’s picture

I only need the edit link on pages or stories. Perhaps this clarifies my question?

Zoologico’s picture

I'm looking for the same thing, I am just surprised nobody has responded so far.

Zoologico’s picture

I found this:

http://drupal.org/node/204181

In which you posted as well.

And then...

In my node template, I just used:

<?php
	if (node_access('update', $node)) {
      print l("Edit", "node/$node->nid/edit");
    }
	?>
Nda’s picture

I use smarty and it appears I didn't know I had to put {$tabs} in my page.tpl. d0h!

This works perfect for me as it also checks the permissions.