[Template Tweak] Add "edit" to Page footer.

Status
Not open for further replies.

Floris

I'm just me :) Hi.
Staff member
Jan 1, 2001
60,101
1,425
930
47
Netherlands
mrfloris.com
Open the template pagenode_container, find this code:

<dt>{xen:phrase page_views}:</dt> <dd>{xen:number $page.view_count}</dd>

And below it add:
<xen:if is="{$visitor.is_admin}"><dt>Admin:</dt> <dd><a href="admin.php?nodes/{$page.node_id}/edit">edit</a></dd></xen:if>


And that's it :)
 
  • Like
Reactions: 1 person
Status
Not open for further replies.