- September 12, 2009
- 798
- 577
- Home Country
- Germany
- Thread starter
- #11
I've checked the code and found the reason: https://github.com/MediaPortal/Medi...ents/Configuration/ConfigurationModel.cs#L480.I now combined them all as you suggested aswell as removed the redundant declarations.
However the menu items are still ordered alphabetically.
Here a WorkflowAction is created, using the label as sort criteria.
What should we do? I would extend the config section metadata with a custom "sort" attribute, so you can define it inside plugin.xml. If it's null or empty default sorting will be title as now. Would this be what you need?
So i would be able to change my plugin.xml to something like this?
Code:
<Register Location="/Configuration/Settings/Plugins/AtmoLight">
<ConfigSection
Id="General"
Sort=1
Text="[AtmoLight.General]"/>
<ConfigSection
Id="AtmoWin"
Sort=2
Text="[AtmoLight.AtmoWin]"/>
<ConfigSection
Id="Hue"
Sort=3
Text="[AtmoLight.Hue]"/>
<ConfigSection
Id="Hyperion"
Sort=4
Text="[AtmoLight.Hyperion]"/>
<ConfigSection
Id="Effects"
Sort=5
Text="[AtmoLight.Effects]"/>
<ConfigSection
Id="Buttons"
Sort=6
Text="[AtmoLight.Buttons]"/>
<ConfigSection
Id="Advanced"
Sort=7
Text="[AtmoLight.Advanced]"/>
</Register>
If so, yeah thats what i would need/like to do.
Thanks!