v21 no categories available
#1
Ok so probably a newby question (new to addon development, my first addon) but I can't figure out what I am doing wrong here:
I have added a settings.xml file in the userdata\addon_data subdir of my addon, the 'Configure' button of my addon becomes available, however the settings are not available and on the left side I only see "No categories available". What am I missing? 

Content of my settings.xml file:

<?xml version="1.0" ?>
<settings version="1">
    <section id="service.test">
        <category id="generic" label="Generic" help="Help!">
            <setting id="file" type="video" label="File" help="Select the video file">
            </setting>
        </category>
    </section>
</settings>
Reply
#2
Doesn't it go in the resources folder in your addon?
Reply
#3
(2024-05-28, 01:22)Hitcher Wrote: Doesn't it go in the resources folder in your addon?

If I put it there it doesn't do anything - it does not even enable the Configure button.
Reply
#4
Your labels have to be numbers that index into your strings.po language localization files, or the main kodi language resource strings.po file.  Addon localized strings should start at 32000.  You can't put literal strings in there.
xml:
<?xml version="1.0" ?>
<settings version="1">
    <section id="service.test">
        <category id="generic" label="32001" help="32003">
            <setting id="file" type="path" label="32002" help="32004">
                <constraints>
                    <writable>false</writable>
                    <masking>video</masking>
                    <allowempty>true</allowempty>
                </constraints>
                <control type="button" format="file">
                      <heading>32005</heading>
                </control>
            </setting>
        </category>
    </section>
</settings>
Tweak constraints as needed.  Place in your addon's resources folder. userdata/addon_data is where the user's settings will be saved after he/she configures the addon settings.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
no categories available0