Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpublish and Delete buttons in backoffice content edit page #8565

Open
AndreaPiovanelli opened this issue Jun 8, 2022 · 1 comment · May be fixed by #8566
Open

Unpublish and Delete buttons in backoffice content edit page #8565

AndreaPiovanelli opened this issue Jun 8, 2022 · 1 comment · May be fixed by #8566
Milestone

Comments

@AndreaPiovanelli
Copy link
Contributor

var results = new List<DriverResult> { ContentShape("Content_SaveButton", saveButton => saveButton) };

The idea is to extend the options of a backoffice operator when managing contents, adding "unpublish" and "delete" content buttons in the edit view, where standard "save" and "publish" buttons are present. I am adding shapes to the referenced driver, shapes are going to be very similar to the ones already present in the "Core/Contents/Views" folder (e.g. "Content.PublishButton.cshtml") Controller actions will be inspired by already existing unpublish and remove actions in AdminController.
On top of that, a little adjustment to the Placement.info is likely going to be needed.

@sebastienros sebastienros added this to the 1.10.x milestone Jun 9, 2022
@AndreaPiovanelli
Copy link
Contributor Author

AndreaPiovanelli commented Jun 10, 2022

PR not ready yet, working to make other drivers and controllers (e.g. Orchard.Blogs') compatible / aligned with new backoffice buttons.

Edited not to double post:
Adding a "unpublish-button" css class for coherence. For the moment, it's going to be the same of "publish-button".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants