Copy, move or hide content¶
Move or copy¶
In Content Tree, you can move or copy existing Content items by selecting an option at the top of the screen. You can also copy the whole subtree (a Content item with all content under it in the structure).
Copying very large subtrees may take too much time and server effort. That is why the system administrator may set a limit on how many Content items can be copied at the same time.
See Copy subtree limit in the developer documentation on how to set this up.
Copying creates a new Content item. If you only want to have the same Content item to another place in the Content Tree, add another Location to it.
In the Content item's details screen, go to Sub-items tab, select multiple items, and click Move. Then choose a Location from the content browser in the Choose Location modal that opens up. After choosing and confirming new Location, all selected files are moved to it.
You can remove content by clicking Send to Trash in the menu. If you remove a Content item that has children (other content under it in the content tree), both this item and the children will be removed. This also breaks the connection between the items, so you will not be able to restore them with the same structure.
Notice that the Content item is not removed completely. It is moved to Trash, which you can access from the left menu. In the Trash, you can search for Content items and sort your search results based on different criteria. You can then select removed Content items and restore them to their original Locations or to new Locations you choose. If the Content item's parent has been removed, you need to select a new parent Location.
If a Content item has more than one Location, selecting Send to Trash will remove the Content item only from the current Location. The content will appear in Trash only once you have removed the last Location.
You can permanently remove a Content item by checking it and clicking the trash icon. You can also permanently remove all content from the Trash by clicking Empty Trash.
Emptying the Trash cannot be undone!
There are multiple ways to delete multiple items, for example:
- in Content Tree, select multiple items. Then click the three dots menu and select Delete
- in Content item's details screen, the Sub-items tab, select multiple items and click Delete
Confirm your choice in the pop-up window with the Send to trash button. All selected files are moved to trash.
You can hide a Content item by clicking Hide in the menu.
When you click Hide, you can choose to Hide later and select and date and time when the Content item will be hidden:
A hidden Content item is not shown in the frontend when using the default templates. It is also grayed out in the Content Tree.
This is different from hiding Locations, because it affects the Content item in all of its Locations.
Visibility and permissions
The visibility switcher is a convenient feature for withdrawing content from the frontend. It acts as a filter in the frontend by default. You can choose to respect it or ignore it in your code. It isn't permission-based, and doesn't restrict access to content. Hidden content can be read through other means, like the REST API.
If you need to restrict access to a given Content item, you could create a role that grants read access for a given Section or Object State, and set a different Section or Object State for the given Content. Or use other permission-based Limitations.