How to use "Trash workflow"

Created on 5 May 2023, over 1 year ago
Updated 18 December 2023, about 1 year ago

Problem/Motivation

I'd like to use the soft delete workflow from the "Trash workflow" submodule.

Steps to reproduce

Enabled the module, set permissions, can see the delete button and a link to the trash on the main content admin page (/admin/content)
Clicking on that link gives a 404, and while investigating, I can't find a view for this page anywhere in the system, nor bundled as a default with the module.

Proposed resolution

Either bundle a default view for the trash with the module, or add documentation on how to setup this view, and hide the link to it until the view exists and the page is accessible.

Or maybe I miss something, in that case I would be grateful for some hints on how to use this feature.

💬 Support request
Status

Needs work

Version

1.0

Component

Miscellaneous

Created by

🇩🇪Germany berliner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @berliner
  • Status changed to Needs review about 1 year ago
  • 🇯🇵Japan ultrabob Japan

    Without having tested this module, here is some potential documentation on how to use it.

    After enabling this module, you'll have to apply it to one of more entity types for it to take effect.

    From the admin menu, visit Configuration > Workflow > Workflows and then click "Edit" next to "Publishing (with draft and soft delete)"

    Scroll down to the "This workflow applies to:" section and click "Select" next to the type of entity you want to use this workflow for, and check the checkbox for the entity bundles you want to use this workflow. Repeat as necessary and scroll to the bottom of the page and click "Save" to apply your changes.

    For example, if you wanted to apply this workflow to the Basic Page content type:

    1. Navigate to the workflow edit page as described above.
    2. Click Select next to Content Types.
    3. In the modal that appears, click Select next to Basic Page, and Click Save.
    4. Scroll to the bottom of the page and click Save again.
    5. Optionally navigate to Admin > Structure > Content Types > Basic Page > Manage Form Display, and change the Moderation State field to use Workflow Buttons.
    6. Now when creating or editing a Basic Page, you should see the Moderation State selector in whatever form you have it configured.

    If this seems ok/accurate, we can either add a help page, a README, or both for the submodule.

  • Status changed to Needs work about 1 year ago
  • 🇩🇪Germany berliner

    Thanks @ultrabob. But this issue is about a missing listing page for "trashed" content, using the soft-delete feature of this module. I am able to see the worflow buttons. But the link to the trash leads to a 404.
    Note: I'm not using the module for my project after all, so I won't be able to provide further details.

  • 🇯🇵Japan ultrabob Japan

    Thanks for the follow. I'll install it, and have a look next time I can devote time to module maintenance.

Production build 0.71.5 2024