Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Sidepanel - moving items up/down

byttebytte
edited October 2006 in Vanilla 1.0 Help
I'm trying to develop an extension. It affects the sidepanel so I use both $Panel->AddString() and $Panel->AddList() The second parameter of these functions determines where the item appears on the sidepanel. But how do I specify that a string using Addstring() should appear higher than a list created through AddList() ??

Comments

  • Options
    Just put a higher index in the addlist method?
  • Options
    I think the index with AddList only affects other Lists, while the index for AddString only affects other Strings.
  • Options
    It shouldnt do...look here, the category switcher (an addstring, i assume) is above the options and filters (all lists), and the text only mode switcher (an addstring) is below them. Assuming you use continually increasing indexes it shouldnt be a problem...If you use the same index twice then they'll start to argue..
  • Options
    Hmmm... I see. Guess I'll have to triple-check some indexes then. Thanks for pointing that out though.
This discussion has been closed.