silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
110 stars 115 forks source link

Incorrect order on new created blocks #594

Closed digitall-it closed 5 years ago

digitall-it commented 5 years ago

I’m having some glitches in the Elemental 4 sort order. Seems like when I create a block, gets added to top of the stack of blocks, and appears in a different position in the frontend. To reorder everything correctly I have to jiggle back and forth almost all the blocks in the page in the CMS.

robbieaverill commented 5 years ago

Could you please supply the version of elemental you're using?

kinglozzer commented 5 years ago

Possibly a duplicate of https://github.com/dnadesign/silverstripe-elemental/issues/548? The fix for that hasn’t been tagged yet AFAICT

digitall-it commented 5 years ago

I'm working on v4.0.1. As discussed on the Slack channel, the proposed course of action is to wait for 4.0.2, and if the problem is still there, output there some debug data (template and CMS $Sort number for each block).

robbieaverill commented 5 years ago

@digitall-it are you able to try using 4.0.x-dev? If it is working there then I'll tag a new release and problem solved

ScopeyNZ commented 5 years ago

I'm going to close this as a duplicate of #548 . It is released now in 4.0.2. We should have an upcoming 4.0.3 soon too.

tardinha commented 5 years ago

I'm getting this. Newly created elements go to the top of the list of existing elements. However, on previous versions, new ones go to the end of the list. Maybe this is by design?

SS 4.3, Elemental 4.0.3

kinglozzer commented 5 years ago

@tardinha That sounds like a different issue: https://github.com/dnadesign/silverstripe-elemental/issues/566

tardinha commented 5 years ago

@kinglozzer sorry mate, didn't see that one! :)