Wednesday 09 July 2008 12:26:18 pm
You can create button like this:
<form method="post" action={"content/action"|ezurl} >
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="submit" name="ActionRemove" value="Remove" />
</form>
You can turn this button into simple link using ezpopupmenu javascript:
<a href="#" onclick="ezpopmenu_submitForm( 'remove' ); return false;">Remove</a>
<form method="post" action={"content/action"|ezurl} id="remove">
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ActionRemove" value="" />
</form>
include popupmenu/ezpopupmenu.js in your pagelayout.tpl
http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac
|