Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Admin > Page > Admin Specific Overrides: Collection (not working)

admin

Started by sbstn 2 years ago · 6 replies · 232 views
2 years ago

Hey all,

i build a page for a client and they are using the news-feature a lot and generated 80+ news entries so far.
The frontend sorting of the pages is by date:
content:
items: '@self.children'
order:
by: date
dir: desc
That would be the wanted sorting in the admin backend as well (so the backend view matches the frontend and the editors have a better overview).

So i set "children_display_order: collection", but unfortunaly that does not apply to the backend order.
I researched the feature to be sure its ment for what i expect and need. And i dont see any possibiliy of a wrong configuration.

I even simulated that on my plain test-insallation localy with the same result.

Seems like a bug or is anyone successfuly using that feature?

2 years ago

@sbstn, I cannot reproduce the issue.

Using skeleton Blog Site:

  • Collection definition in frontmatter of blog page:

    YAML
    content:
    items: '@self.children'
    limit: 6
    order:
        by: date
        dir: desc
    pagination: true
    url_taxonomy_filters: true
    
  • Using ordering by Collection:
    image|545x98

    • Result:
      image|512x349
  • Using ordering by Folder name:
    image|543x84

    • Result:
      image|509x355

Try flushing the cache.

2 years ago

Strange - i did install a fresh "skeleton clean blog" and it works like expected and a charme.

But i cant make it work in my test-installation or project. Even erased all caches and manualy updated system and plugins on file-level.

reihenfolge-pages|690x122
reihenfolge-config|690x300
reihenfolge-output|328x204

I checked it in some other live-projects, but - strange enough - i does not work in all of them. All of the projects are absolutely up2date etc.

2 years ago

@sbstn,

@sbstn:
Strange - i did install a fresh “skeleton clean blog” and it works like expected and a charme.

But i cant make it work in my test-installation or project.

  • Check date values in frontmatter of pages and expected date formats in system.yaml
  • Seek for any other differences....
2 years ago

1st of i want to thank you for taking the time to help with my issue!

i spare you, what i tried, just the important stuff:

My test-installation is based on the pure version of grav+admin, so i grabed a copy, replicated the situation and again - everything works fine.

Everything the same, except the plain grav-admin is one language and my test-installation (as well as my projects) is with multiple.
So i added one more language and forced the language in the file-extension (default.en.md).
Result: children_display_order: collection does not work in the admin anymore.

So that seems to cause the problem... happy to find out. And hopefully the path to a solution.

👍 2
2 years ago

@sbstn, The issue is indeed reproducable using multiple languages... I suggest you create an issue at Github

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 48 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago