Req How to display tags?
#1
Hi! I'd like to change the Arctic:Zephyr theme, so it would display the "tags" of a movie / a tv show below the "genre". My request for that in the corresponding forum has remained unanswered, so I'd like to try it myself.

In script-script.extendedinfo-DialogVideoInfo.xml I have found the following code. My theory is, that I have to just duplicate that code and change Window.Property(genre) to something like Window.Property(tag) -- but what exactly? Also, the $LOCALIZE[515], which probably is "Genre" or something like that to something else that would represent Tag -- but again -- what? And that should do it, right? Or do I somehow need to "compile" the code as well? (it's currently in addons\skin.arctic.zephyr\1080i\script-script.extendedinfo-DialogVideoInfo.xml)

Thanks!
Code:
                        <control type="group">
                            <visible>IsEmpty(Window.Property(content))</visible>
                            <height>36</height>
                            <control type="label">
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark1</textcolor>
                                <label>[b]$LOCALIZE[515][/b]</label>
                                <aligny>center</aligny>
                            </control>
                            <control type="label">
                                <left>150</left>
                                <width>100%</width>
                                <height>36</height>
                                <font>Tiny</font>
                                <textcolor>Dark2</textcolor>
                                <label fallback="19055">$INFO[Window.Property(genre)]</label>
                                <aligny>center</aligny>
                            </control>
                        </control>
Reply
#2
since that info is provided by the extendedinfo addon, you would need to check if the script also provides a 'tag' window property
i don't think it does: https://github.com/phil65/script.extendedinfo
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
@annomatik - you are on the right track but are looking at the wrong xml. The one you are looking for is DialogVideoInfo.xml

In that dialog, there is a group list with code like this
Code:
<control type="group">

    <height>36</height>
    <control type="label">
        <width>100%</width>
        <height>36</height>
        <font>Tiny</font>
        <textcolor>Dark1</textcolor>
        <label>[B]$LOCALIZE[345][/B]</label>
        <aligny>center</aligny>
    </control>
    <control type="label">
        <left>150</left>
        <right>420</right>
        <height>36</height>
        <font>Tiny</font>
        <textcolor>Dark2</textcolor>
        <label fallback="19055">$INFO[ListItem.Year]</label>
        <aligny>center</aligny>
    </control>
</control>

As you correctly assumed, you just need to duplicate that code and the change the $LOCALIZE[345] and $INFO[ListItem.Year] parts. The info label you are looking for is $INFO[ListItem.Tag] and the localized string for "tags" is $LOCALIZE[20459]

You can see available info labels and other details about skinning in the skinning manual:
Skinning_Manual (wiki)
Reply
#4
It's works fine... but... I can't find the way (however spent 2 days) how can I display the tag informations in different Views / Includes...
The $INFO[ListItem.Tag] works "only" in DialogVideoInfo.xml ( I don't know why) - but if I try to use the same variable somewhere else, nothing.

Example from View_57_ExtraInfo.xml

<control type="label">
                    <top>10</top>
                    <aligny>center</aligny>
                    <height>64</height>
                    <font>SmallBold</font>
                    <textcolor>Dark1</textcolor>
                    <selectedcolor>Dark1</selectedcolor>
                    <label>$VAR[LabelDirector] ($VAR[LabelYear]) $INFO[ListItem.Tag]</label>
                </control>




Someone elese with the same problem : https://stackoverflow.com/questions/4931...-kodi-skin
but no solutions until now...

Hope someone can help!
Reply
#5
Curious if you've ever found an answer to your inquiry about using tags on other screens besides DialogVideoInfo screen?

I'd love to be able to use tags all over skins for things that currently require file naming conventions for Kodi to recognize (video ]/audio format, etc.). Hoping you've had some luck!
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
How to display tags?00