Home ›
Make nodes easy to edit, even when they are embedded in a panel or teaser istMake nodes easy to edit, even when they are embedded in a panel or teaser ist
Submitted by Benjamin Melançon on December 31, 2007 - 11:19am
noticing how hard it is to edit a node in a panel?
dan hak 11:03
oh yea, your old thing didnt show that03:30
yea03:32
it sucks03:45
you have to go tothe panel03:51
figure out what it is03:54
then find the nodebenjamin melançon 11:09
well no more!dan hak 11:09
i assumed thats what you were getting at
In our node.tpl.php, just below:
<div class="content">
<?php print $content; ?>
</div>
Agaric added this snippet:
<?php
if (user_access('administer nodes')) {
print l('edit', 'node/' . $node->nid . '/edit', array('class' => 'admin-node-edit'));
}
?>
This should be enhanced by the node trying to see if it even exists in a panel, and to check for specific editing rights rather than general "administer nodes"
Resolution
Searched words:
node template .tpl.php edit link
finding a node within a panel
Comments
Post new comment