How to reorder the tabs in the dashboard


#1

I read that there is no customisation of the dashboard in terms of how it looks, but I was wondering if its possible to control the order of the tabs within it, mainly because I have made my first site using Vapid and other than general, the first tab is ‘footer’ and the layout is almost exactly back to front from that which I would want - I’m assuming that its basically the order that I have made the sections, is there any way to manually specify it or is removing the sections and then adding them back in the only route that I have to re-order them?

Thanks, and really enjoying Vapid so far.

Charles


#2

@Charles Good question. Right now, there isn’t a way to specify the order of form elements, but I could see how that would be useful. In fact, I’ve wanted to reorder them myself, a few times!

Also, you’re right; the layout is currently gleaned by their order in the document.

I could see it working one of a couple ways:

At the section level

{{#section about layout="title,body,photo"}}
  {{photo type=image}}
  {{title}}
  {{body type=html}}
{{/section}}

Pros: Easy to write and read
Cons: Have to keep it in sync with the field (e.g. if you add/remove some)

At the input level

{{#section about}}
  {{photo type=image}}
  {{title priority="1"}}
  {{body type=html priority="2"}}
{{/section}}

Pros: You only have to specify numbers for one that take priority, all others could fall below
Cons: Can be a pain to manage across files, or to insert fields in between two numbers.

What do you think?


#3

So I actually meant the tabs down the side in the dashboard - the tabs for the sections like general, home page, about page etc, but I had also had the problem you have described here too - I guess the solution could be similar, or perhaps a mixture of the two, the sections could have a priority whilst the ‘layout’ would be good for ordering the fields within them?

Thanks for the response.

Charles


#4

I think the “layout=…” one makes more sense. Just trying to imagine if you have 20 fields, and want to add another one between 2 others, you only have to insert the field name in the string. If you had the “priority=x” option, you’d have to edit the priority number for more fields.