- September 12, 2009
So i would be able to change my plugin.xml to something like this?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?
<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>