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

Child pages that are deleted from draft disappear from gridfield #18

Open
dhensby opened this issue May 13, 2015 · 8 comments
Open

Child pages that are deleted from draft disappear from gridfield #18

dhensby opened this issue May 13, 2015 · 8 comments

Comments

@dhensby
Copy link
Contributor

dhensby commented May 13, 2015

Pages that are live but have been deleted from Draft stage go missing from the gridfield

cc @tractorcow

@tractorcow
Copy link

That's a valid point, but in a future version of framework we are looking to remove the "delete from draft but not live" function as it's not intuitive.

In order to solve this problem it may be necessary to add a new search filter feature, something similar to the current sitetree filtering mechanism.

If other people would like this please raise your voices here and help get it prioritised. ;)

@dhensby
Copy link
Contributor Author

dhensby commented Jun 13, 2015

AM I SHOUTING LOUD ENOUGH?!

@stevie-mayhew
Copy link

I will raise my voice also - this would be super handy for catalog manager.

@christopherdarling
Copy link
Contributor

We've run into this too where a client had deleted a page from the draft site but left it published, they were unable to find the page in the CMS to remove it from the published site when they were ready. I've been working on a bit of a proof of concept, using the same code as CMSMain::treeview/listview to generate the list (AllChildrenIncludingDeleted) and using the same logic from SiteTree::getStatusFlags.

The code needs some tidying up (actually use SiteTree::getStatusFlags() - I've just copied and pasted it in to GridFieldSiteTreeState for now, and also the icons need some work.

I wanted to get some feedback on this before I polish it off and create a pull request.

https://github.com/christopherdarling/silverstripe-lumberjack/tree/1.1

@dhensby
Copy link
Contributor Author

dhensby commented Jul 3, 2015

@christopherdarling Your solution looks similar to mine: silverstripe#6

In that it just returns all pages deleted or not. The feedback has been that it's not a great solution.

Instead we probably need to create our own gridfield component for switching between showing deleted or not.

In 3.2 this will be less of a problem due to the archive feature...

@christopherdarling
Copy link
Contributor

@dhensby I thought that the main issue with yours was that it listed all pages that were deleted/archived from both stages. Or have I got the wrong impression? With what I've used if the page is removed from both stages it's not present in the GridField.

I agree that creating a component and filtering is a better solution and probably the way to go, but I wonder if this could be a temporary solution to the problem/bug until that work on the component is done.

@dhensby
Copy link
Contributor Author

dhensby commented Jul 5, 2015

@christopherdarling oh, interesting, well, open a PR and lets get some thoughts going :)

@christopherdarling
Copy link
Contributor

@dhensby done :)

Tangdongle pushed a commit to designcity/silverstripe-lumberjack that referenced this issue Apr 4, 2016
Create a Finnish translation
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

No branches or pull requests

4 participants