Download:
https://github.com/N...ocessPageDelete
Posted 11 January 2012 - 04:16 PM
Posted 12 January 2012 - 11:50 AM
$trash = $this->pages->get('name=trash'); // delete this
$page->parent = $trash;
$this->pages->trash($page);
if(!$page->deleteable()) throw new WirePermissionException("You don't have access to delete that page");
Posted 16 January 2012 - 11:30 PM
$page->save();
$this->pages->trash($page);
Posted 16 January 2012 - 11:39 PM
if(!$page->deleteable()) throw new WirePermissionException("You don't have access to delete that page");
$parent_id = $page->parent_id;
$this->session->redirect("../?open={$parent_id}");
Posted 17 January 2012 - 08:28 AM
Posted 09 April 2012 - 05:58 AM
Posted 09 April 2012 - 08:07 AM
Posted 09 April 2012 - 03:59 PM
Posted 11 April 2012 - 08:33 AM
Posted 11 April 2012 - 08:51 AM
Posted 11 April 2012 - 09:33 AM
Posted 11 April 2012 - 05:32 PM
Posted 12 April 2012 - 03:28 AM
Posted 12 April 2012 - 02:00 PM
Posted 12 April 2012 - 02:03 PM
'permission' => "page-delete"
Posted 12 April 2012 - 02:16 PM
Posted 05 May 2012 - 01:56 AM
<script type="text/javascript">
$(document).ready(function() {
$("li.PageListActiondelete a").live("click", function(el){
if(!confirm("Are you sure?")) { return false; }
});
});
</script>
Posted 05 May 2012 - 02:42 AM
0 members, 0 guests, 0 anonymous users
![]()
Web hosting by ServInt