Kodi Community Forum

Full Version: itemlayout condition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I am hoping someone can explain how the following line is used
<itemlayout width="250" height="29" condition="true">
this is from the wikki but i never did understand how to use it.

Quote:. You can have more than one <itemlayout> tag based on conditional visibility. The first <itemlayout> with a condition that is satisfied (or no condition specified) will be used for a particular directory listing. The condition is only checked when the list is refreshed.

can someone show me an example please

Ztrust
Let's say you want the layout of your viewtype to be different based on what type of content it is showing, you could use:

<itemlayout condition="container.content(movies)" width="n" height="n">

for example
tx jeroen

of course Wink