Cms: Unable to get the manual entry order from the collection on front-end.

Created on 10 Apr 2020  路  4Comments  路  Source: statamic/cms

Bug Description

Unable to get the manual/predefined entry order from the collection on front-end.

How to Reproduce

  1. Set your collection to manual ordering via drag & drop.
  2. Manually order your collection entries
  3. Template:
{{ collection:yourcollection taxonomy:tag="myTag" as="entry" }}
  {{ entry }}
     {{ partial:menu/menuItem }}
  {{ /entry }}
{{ /collection:yourcollection }}

4..... Not profiting from your manual predefined entry order (it's alphabetical).

Stuff i tried to no avail:

sort="order"
  • some other embarrassing/desperate stuff.

Extra Detail

On request

Environment

Local

Statamic version: 3.0.0.-beta-23

PHP version: 7.4.4

Install method (choose one):

  • Fresh install from statamic/statamic
tags

Most helpful comment

I was having the same issue. I went into the collection and set the max depth to 1. Once that is in place, you can reorder through the CP and it is reflected on the front end. Haven't dug into the root cause, but may be part of the Collection class and the orderable method.

All 4 comments

Hey there, thank you for taking the time to open up a bug report, we really appreciate it.

I hate to do this, but I need to open a bug report on your bug report. :bug: You see, you didn鈥檛 provide some of the required detail that we need to be able to work on this issue. We really do need to know what version of Statamic and PHP you鈥檙e using, and how you installed it. It makes a huge difference.

What to do: You can either edit the details of this issue with the missing information or you can close it and open up a new one and fill out all the sections of the template. Either is fine by us!

_If we don鈥檛 hear back from you in a day or two this issue will be automatically closed but you鈥檙e always welcome to open a new one!_

Yeah was in a little hurry, i updated the issue.

I was having the same issue. I went into the collection and set the max depth to 1. Once that is in place, you can reorder through the CP and it is reflected on the front end. Haven't dug into the root cause, but may be part of the Collection class and the orderable method.

Thanks @nobleintegrations . Can confirm that this works!

Was this page helpful?
0 / 5 - 0 ratings