Restore Pages and Content Using the Wastebasket Tool
Accidents do happen and sometime you may delete a page that you really didn't mean to delete. The good news is that TYPO3 is ready to help put things right.
In our example, we're going to "accidently" delete My Page and then we'll restore it using the Wastebasket Tool.
When this happens, you will need to use the Wastebasket tool to restore both the page and whatever Content Elements and/or records that were deleted.
- Begin by scrolling down and clicking on the Wastebasket tool.
- Every record that is deleted in TYPO3 ends up here in the wastebasket. First, notice that each record has a UID number, that is, a Unique ID.
Second, notice that the UIDs are separated into types such as (1) pages, (2) sys_refindex, and so on. In our example, we're only concerned with the two types Pages and tt_content (the page's Content Elements).
Finally, notice that the deleted page "Welcome!" has a PID of 102. That tells you that this record "belongs" to UID 102, that is, to our deleted page. This can be very helpful in deciding which records need to restored to a page. - Begin the restoration process by clicking on the "Restore this record" icon to the right of the missing "My Page."
- You can rest assured that the page has been restored. But the content of the page is still in the wastebasket. Click the "<- back" link to return to the wastebasket tool.
- Now we'll restore the deleted Content Element from the tt_content list.
Again, notice that the PID for the deleted "Welcome!" page is 102, which is the UID of our deleted page. If a page has multiple Content Elements and/or other records, you can tell where they go by their PID. - Click on the "Restore this record" icon to the right of the deleted "Welcome!" record.
- Scroll back up and click on the Page Module to see the restored Page.
- Notice that the page has been restored, but it is in a different location in the Page Tree. You can move the page to its original position if you'd like (see the How To "Move a Page" if you don't know how).
- Click on the "View webpage" icon to look at the restored page in the Frontend.
The page has been completely restored. - You can use the same procedure to restore other page content, such as extension plugins, etc.