Forum: Radiant CMS Positioning top-level tab

Posted by D.Kreft (Guest)
on 2010-10-13 22:05
(Received via mailing list)
I've got a home-brewed extension that adds a tab and a couple of 
subtabs.
The problem is that my added top-level tab isn't quite where I want it 
(I
want it to be the penultimate tab, not the last in the row). I see on 
the
wiki[1] that there's a key for specifying the order of the secondary 
tabs,
but there doesn't appear to be a way to shuffle the top-level tabs 
around.

Suggestions?

-dan

-- Footnotes

[1]
http://github.com/radiant/radiant/wiki/Developer-U...
Posted by Jim Gay (Guest)
on 2010-10-13 22:26
(Received via mailing list)
On Wed, Oct 13, 2010 at 4:04 PM, D.Kreft <dkreft@gmail.com> wrote:
> I've got a home-brewed extension that adds a tab and a couple of subtabs.
> The problem is that my added top-level tab isn't quite where I want it (I
> want it to be the penultimate tab, not the last in the row). I see on the
> wiki[1] that there's a key for specifying the order of the secondary tabs,
> but there doesn't appear to be a way to shuffle the top-level tabs around.
> Suggestions?
> -dan
> -- Footnotes
> [1]
> 
http://github.com/radiant/radiant/wiki/Developer-U...

I just recently did this for Dashboard
http://github.com/saturnflyer/radiant-dashboard-ex...

But the tabs are just arrays, so if you like you can use any way you
would sort a ruby array
http://ruby-doc.org/core/classes/Array.html#M002185
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.