Lesson 2.3: Checking before removing or hiding
Removing an image that three articles embed leaves three holes on the site. Exponential can show, on the confirmation page, which items point at what is about to go, and can even refuse the removal. This lesson teaches editors to read that list and act on it.
At a glance
| Course | Editors 201 |
| Module | Module 2: Relations, locations and embedding |
| Duration | 30 minutes (10 presenting, 20 exercise) |
| Level | Intermediate |
| Audience | Editors who remove or hide content |
| Prerequisites | Lesson 2.1, Lesson 2.2 |
Learning objectives
After this lesson, learners can:
- read the list of referring items on the remove confirmation and on hiding;
- decide whether to fix the referring items first, cancel, or remove anyway;
- explain the site settings
warn(list, then allow) andblock(refuse while references exist); - recover when a removal broke a link (restore from the trash, re-link).
Trainer's notes
How to present it
Source: Removing and hiding: the check of reverse relations.
- Why (2 minutes). Removing content leaves references pointing at nothing; hiding it leaves them pointing at content the site no longer shows.
- The list (4 minutes). With the shipped setting
warn, the remove confirmation lists, per selected item, the objects that point at what goes. OK removes as before. Hiding (also Hide selected) shows the same kind of warning; a hide is never refused. - Block (2 minutes). A site can set
blockfor removal: the list is shown and the removal is refused while references exist; the OK button is disabled and says why. If a form is sent anyway, the page says Nothing was removed. It is a decision of each site; ask your administrator which yours uses. - After a mistake (2 minutes). Restore the item from the trash (Editors 101, lesson 6.4). The next time a referring text is stored, the online editor reports links to items that are gone (Editors 101, lesson 4.2).
Common questions
Who decides between warn and block? The site's administrator, in the content settings. Editors see the effect on the confirmation page.
The list is long. Must I fix every item? Decide per case: replace the image in the referring articles, or keep the item and hide it instead of removing it, or accept the broken references if the referring items go too.
Does the check also look at Layouts blocks? The layouts extension adds its own provider, so blocks that show the item can be listed too.
Pitfalls
- Unticking Move to trash. The confirmation page has a Move to trash choice. Moved to the trash, items can be restored later; without it they are deleted for good. Keep it ticked in class.
- Confirming out of habit. The list is only useful if read. Ask learners to read it aloud in the exercise.
- Testing on shared content. Remove only learners' own items in the exercise.
- Hidden confirmation. A site that switched off the remove confirmation shows no list; the check cannot help there unless it blocks.
Hands-on exercise
Use the training installation and your items from lessons 2.1 and 2.2.
- Open the image you embedded in Our team, two places (lesson 2.1). Check its Reverse related objects.
- Press Remove on the image. Read the confirmation page: find Our team, two places in the list of items that point at it.
- Do not confirm. Press Cancel.
- Open Our team, two places with Edit and remove the embedded image from Body. Publish.
- Open the image again: Reverse related objects no longer lists the article (it may still list it if the article's image field uses it; then remove it there too or choose another image).
- Press Remove on the image again and read the confirmation. Confirm only if no item points at it any more.
- Open Trash, find the image and Restore it.
- In your course folder, tick Our team, two places and choose More actions > Hide selected. Read any warning, confirm, then unhide it again.
Expected result
- Step 2 listed Our team, two places among the items pointing at the image (on a site with
warnorblock). - After step 4 the image had fewer references; step 6 removed it without breaking the article; step 7 brought it back.
- The learner read the hide warning in step 8 (if any item points at the article) and unhid the article.
- The trainer checks by asking a learner what they would do if the list in step 2 had contained ten articles.

Quiz
- What does the remove confirmation list with the shipped setting?
- What is the difference between
warnandblock? - True or false: a hide can be refused because of references.
- The removal page says Nothing was removed. Why?
- A removal broke a link in an article. Name two ways to repair it.
Answers
- Per selected item, the objects that point at what goes (Removing and hiding: the check of reverse relations).
warnlists the references and allows the removal;blocklists them and refuses the removal while they exist.- False. A hide is never refused;
blockunder hiding is taken aswarn. - The site blocks removals while references exist, and a reference was found when the form was sent.
- Restore the item from the trash, or edit the article and link to another item.
Further reading
- Removing and hiding: the check of reverse relations: every case and setting.
- Publishing, versions and the trash: removing and restoring.
Related pages
- Module 2: Relations, locations and embedding
- Editors 201: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.