Recreate the recycle bin after you have accidentally deleted it.
I thought I would share this little, but handy tip.
I am currently transfering a lot of media files from an old Umbraco installation into a new one. This involves a lot of testing and me hammering away in the Media section. In the midst of my hammering I accidentally right clicked the recycle bin instead of a media item and clicked delete. Now normally the recycle bin does not have the delete option for obvious reason, but I am guessing that things just went to fast and the tree did not have time to update since the last action. Anyways I deleted the Recycle bin. That is.. not so good. All items disappear from the media section since the TreeDataService throws an exception early on, now that the Recycle bin is deleted from the database.
Luckily all you have to do to recreate the Recycle bin is go to the umbracoNode table and add a new node. You can copy the data from another installation, look for a node with the id -21. On a Umbraco 4.7 installation I used this:
Recreate the recycle bin after you have accidentally deleted it.
I thought I would share this little, but handy tip.
I am currently transfering a lot of media files from an old Umbraco installation into a new one. This involves a lot of testing and me hammering away in the Media section. In the midst of my hammering I accidentally right clicked the recycle bin instead of a media item and clicked delete. Now normally the recycle bin does not have the delete option for obvious reason, but I am guessing that things just went to fast and the tree did not have time to update since the last action. Anyways I deleted the Recycle bin. That is.. not so good. All items disappear from the media section since the TreeDataService throws an exception early on, now that the Recycle bin is deleted from the database.
Luckily all you have to do to recreate the Recycle bin is go to the umbracoNode table and add a new node. You can copy the data from another installation, look for a node with the id -21. On a Umbraco 4.7 installation I used this:
is working on a reply...