loogart / impact-canada

Canadian Government's Privy Council's Office Impact Canada website.
https://loogart.github.io/impact-canada/
0 stars 0 forks source link

Re-order challenges and initiative tiles #48

Closed loogart closed 5 years ago

loogart commented 5 years ago

Hey Duncan @djsutter, Rodney just passed by and mentioned he would like to move tiles around e.g. the SIB opioid initiative 1st, Learning bond 2nd and cannabis 3rd. How do we manually do this? Or what do you suggest I do to manually order tiles?

djsutter commented 5 years ago

Ok. All we need is to decide what will be the ordering parameter, and we will make it so. Easiest (other than just using a date) is to provide an ordering field which takes a number 1,2,3,etc. and I set the view to order by that number. Let me know what you think

djsutter commented 5 years ago

Oh, this would be available to both challenges and initiatives, but they use separate views. I would suggest doing this for both... might as well.

loogart commented 5 years ago

@djsutter the simpler the better, i think this should work perfectly. I assume there would be two separate ordering systems one for challenges and one for intiaitves>

loogart commented 5 years ago

Yes just saw your comment!

djsutter commented 5 years ago

Alright this is done, and I re ordered the 3 items to test. Note that if you have no number (default) then it takes precedence in the sorting (not really intended but...) Also I had to make the Nav title optional, but I see that "home" is still showing up in the nav for new initiatives. What should we do?

loogart commented 5 years ago

@djsutter we will change it to a more descriptive title. And when we add more subpages per initiative, this will make more sense.

loogart commented 5 years ago

Btw, awesome for the sorting mechanism. thank you very much.

djsutter commented 5 years ago

no problemo :-)

djsutter commented 5 years ago

Is this done?

loogart commented 5 years ago

perfect. tested it out, works like a charm.