2013-05-30, 20:45
(2013-05-30, 19:55)`Black Wrote: No, that's not the way it works.I'm sorry, but i read both of those many times before asking here. As far as i understand in <content> instead of <control type="togglebutton" id="4"> i need to use appropriate infolabel in <label> and built-in function in <onclick>. And this code work
http://wiki.xbmc.org/?title=Container_Item_Layout
http://wiki.xbmc.org/index.php?title=Sta...st_Content
PHP Code:
<item id="2">
<description>View</description>
<label>View</label>
<label2>$INFO[Container.Viewmode]</label2>
<onclick>Container.NextViewMode</onclick>
</item>
PHP Code:
<item id="4">
<description>Asc/Desc</description>
<label>Sort</label>
<label2>$INFO[Container.SortDirection]</label2>
<onclick>Container.SortDirection</onclick>
</item>