How to change order of Action items

KAC

Joined: 2004-12-01
Posts: 164
Posted: Wed, 2005-07-13 16:36

Currently, in the G2 sidebar, the Actions appear to be displayed in alphabetical order.

Is there a way I can designate the order for them to appear?

For example, I changed "add sub-album" to "Create new album" and want that at the very top.

For now, I've used "*Create new album" so the "*" puts it at the top but that doesn't look so good.

Thanks!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-07-13 22:51

update from cvs in a few hours and take a look at modules/core/templates/blocks/SystemLinks.tpl (and themes/matrix/templates/theme.tpl where it is used).. if you submit a patch to modules/core/templates/blocks/ItemLinks.tpl to also accept "order" and "othersAt" parameters then we can roll that into cvs. I'm not sure how you'd identify links in the "order" list though.. system links have ids but item links just have url parameters.

(also, would a space on the front sort it to the top? not sure if we strip spaces before sorting.. or maybe & nbsp;)

 
KAC

Joined: 2004-12-01
Posts: 164
Posted: Sat, 2005-07-16 16:32

Adding a space to the front did sort it to the top.

What I did was, put 4 spaces in front of the one I wanted at the top, then 3 spaces in front of the one I wanted second, etc.

This worked out great because when displayed, the spaces were ignored and the action item(s) displayed perfectly in line with all the other actions even though I had put a space(s) in front of each.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-07-16 20:23

haha, i guess my alternative workaround prevented us from getting a code patch :)