Item on the last position for Static to Collection List

Hello there!

I’m looking for an option to place an item inside the Collection list with the “Static to Collection List”-Attribute on the last position.

I’ve just found the possibility to control the order, but I need it to be always on the last position, without manually changing the order number.

Any suggestions?
Thanks!

1 Like

Hey @baldium.com! I’m afraid this is not native to the solution but I can add it as a suggestion for the devs to take a look at it. You can also try to make it work with some custom JS.

1 Like

Hey Luis

Thanks! I can live with the current solution and simlpy place it on the 5th position, but it would be of course nice if you can pass the suggestion.

Have a nice day!

@Support-Luis any update on this? I’d also love a simple way to add the static item last. Or any pointers on the custom js that could achieve this

2 Likes

That solution would be great! On the other hand, I’m experiencing a bug. The static element I add replaces the item in the collection instead of being added. For example, if I define that the static element should be added at order ‘3’, it replaces the item in the collection that falls at that order.

Does anyone know how to fix this? Thank you very much!

nevermind, fixed adding “fs-cmsstatic-interactive = true”

1 Like

I’d love to follow up on this too, @Support-Luis ! Thanks :slight_smile:

1 Like

Following up on this again, please! @Support-Luis

Hey @_theclevernod! This should be coming with the updated Attributes release :slight_smile:

Hi. It seems that there haven’t been any updates on this yet, @Support-Luis? I’d appreciate the custom JS code to enable this option :slight_smile:

Hey @here! I would like to correct my previous response, it seems there is a way to set the item at the end of the list. While we don’t have documentation for it, I recently tested setting fs-cmsstatic-order = 101 and this seemed to work for a relatively small collection (less than 100 items).

The value can be set to anything larger than the total amount of your items and the static element should be placed at the end.

This may not be ideal if your collection rapidly grows but it is a fix while we implement the fs-cmsstatic-order = last || end natively for you to set and forget!

Please give it a go and let me know if you face any issues!

Thanks. I tried it with one project that has a small number of items and it worked.

1 Like