Code Monkey home page Code Monkey logo

Comments (7)

danrot avatar danrot commented on July 18, 2024

We were experiencing the same issue, but the problem here is that it is not clear what the resulting order should be. Someone could also argue that he'd like the top pages be first and order level by level afterwards.

For us it doesn't really make sense to have it ordered based on the admin if you have multiple folders, since the order is only meant to be applied in a list. So we were thinking about removing this Admin sort order option as soon as you are loading pages from multiple folders.

And in your special case it might make sense to order them by some date, doesn't it?

from sulu-standard.

ampaze avatar ampaze commented on July 18, 2024

Thanks for the reply,

I would still consider the admin order to be exactly the one that is seen in the pages tree view, including the position of sub folders, which are also pages anyway. Top pages first and folders after that is something different to the admin order. Why is the admin order only meant to be applied in a list, when it is available and used to sort pages in the navigation for example.

In my special case the created at date is not always the order that is wanted, hence using the manual order. If I would be able to order by a page content date field, this would be another story though.

from sulu-standard.

danrot avatar danrot commented on July 18, 2024

The admin order can't be what it is in the pages tree view, since the representation is completely different. Whatever sorting order we would choose in that moment is not how it is when it is displayed in a tree/column view.

If you have a tree like this:

Page 1
- Page 1.1
- Page 1.2
Page 2
- Page 2.1

Then you have two different versions how to sort that with the admin order in a list, which both are totally acceptable:

- Page 1
- Page 1.1
- Page 1.2
- Page 2
- Page 2.1

And the other possible order:

- Page 1
- Page 2
- Page 1.1
- Page 1.2
- Page 2.1

The only way I see that we can solve that, is to remove the Admin order and introduce two others for both different versions.

from sulu-standard.

ampaze avatar ampaze commented on July 18, 2024

I would be fine with two admin order options, although I am not sure what to call the second one :)

from sulu-standard.

danrot avatar danrot commented on July 18, 2024

Yeah, and the other thing is if we can get these versions in a performant way. And to be honest this issue does not have a high priority for us, and we do not have any resources left to work on it currently. Could you imagine fixing this on your own and submitting a PR?

from sulu-standard.

ampaze avatar ampaze commented on July 18, 2024

Fair enough.
I am not sure I could fix this within a reasonable amount of time, as the sorting mechanisms seems to be very reliant on looking at single pages only, e.g. without the hierarchy.

from sulu-standard.

danrot avatar danrot commented on July 18, 2024

This is actually related to sulu/sulu#5017, and the other repo is the correct one to have this issue. Therefore going to close this one.

from sulu-standard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.