Monday 07 March 2011 8:33:39 am
Hello all, i have a question about frontend editing of content objects within a page. currently i have this template
"
{def $current_user=fetch( 'user', 'current_user' )}{if $current_user.contentobject.can_edit|eq(true)}<a href="/content/edit/{$active_node.contentobject_id}/">[edit]</a>
"
which allows for a edit button to be displayed next to content objects on a page. This gets around some of the shortcomings of the ezwebtoolbar which only allows editing of the current node. My question however is this, when someone edits the items using this button they are redirected back to / instead of the node from where they clicked the button. I have tried mimicking the the way the webtoolbar does editing through a web form, but still it redirects back to the / page. Any ideas on how to get the editor to redirect back to the page the button was clicked from. Thanks Nicholas
|