question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add weight property to pieces for ordering

See original GitHub issue

A feature that comes up occasionally from clients is manual ordering that would be respected across the site. So if I have staff I can, through some UI, drag them into an order that’s respected across the site in widgets, indexes, etc.

The weight property in Drupal and order (I think) in Wordpress works like this. It might take a bit of config to get it set up in those CMS, but it’s a pretty valuable option. Importantly this would have the UI for drag sorting rather than needing to set a number in each piece’s UI.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
boutellcommented, Mar 22, 2019

Closing as we now have the apostrophe-pieces-orderings-bundle.

1reaction
tortilamancommented, Feb 8, 2018

I’ve implemented a weight field in some projects recently, and there are a couple issues with that:

  1. Make sure you don’t sortify an integer field, that’s a really annoying thing to figure out.
  2. When you change the weight of one item, it doesn’t affect the weights of other items. I guess this is why it’s a weight and not an order.

I’ve been looking to figure out some way of actually ordering things as well, but hadn’t gotten around to fully implementing anything yet. I think this would be really valuable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HOW TO Add Weight To Props (Shop Tip) - YouTube
... for injury, death, property damage, or any other liability that may result related to the information provided in this video.
Read more >
Adding Mass Properties - 2021 - SOLIDWORKS Help
To add mass properties: Enter a Property Name for the mass property. ... Under Value / Text Expression, select the appropriate mass property...
Read more >
Why does the '#weight' property sometimes not have any ...
One thing to note, though, is that the weights only affect the order relative to the elements siblings, so if the element you...
Read more >
Exploring Mass Properties in SOLIDWORKS
Need to find the accurate value for mass, coordinates for center of mass, or design volume for your SOLIDWORKS models?
Read more >
SOLIDWORKS Custom Property Tab Builder - GoEngineer
The SOLIDWORKS Custom Property Tab Builder is a stand-alone utility to create a customized interface for adding properties to SOLIDWORKS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found