Comments (7)
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.
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.
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.
I would be fine with two admin order options, although I am not sure what to call the second one :)
from sulu-standard.
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.
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.
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)
- Attempted to call function "oci_connect" from namespace HOT 1
- adding images inside editor HOT 1
- Run in dev environment HOT 3
- Hidden description field editor on Excerpt & Categories tab HOT 14
- How does image caching mechanism work? HOT 3
- In Apache error log: Unknown portal environment "prod" in /var/www/html/sulu-standard-develop/vendor/sulu/sulu/src/Sulu/Component/Webspace/Manager/WebspaceCollection.php:97 HOT 2
- Stored Cross-site Scripting (XSS) in page creation HOT 6
- How to override a default aura-component HOT 2
- Anchor tag in sulu:link HOT 1
- Missing bin/adminconsole HOT 7
- Error link between old deleted block and page HOT 2
- No feedback on saving category with duplicate key (No error is displayed) HOT 1
- Can't add a new localisation, the admin doesn't show it HOT 4
- How to get content by category HOT 2
- Users can't change their own contact without being able to change all of the contacts HOT 2
- [TranslateBundle] issue with non-standard translation files sulu:export:translate HOT 7
- Support of PostgreSQL 10 HOT 1
- bin/adminconsole missing HOT 4
- Moving media not available at top level HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sulu-standard.