Conditionally change the position of a group within a group

Like everyone, I have groups within groups. Let’s say Group A contains SubGroup B.

I want the default position of SubGroup B within Group A to be “Make first”, but when some condition is met, I want the position of SubGroup B within Group A to be “Make last”.

I’m not seeing any way to do this.

Can this be done? If so, how?

This would probably work if you use dynamic css classes in the element id, so if condition is met set an custom state to true/first for example then change the css class.
code would go into the page header

#subgroup-b-first {
    order: -1; /* Makes it appear first */
}

#subgroup-b-last {
    order: 9999; /* Makes it appear last */
}

Thank you.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.