2011-06-18, 20:32
Hitcher Wrote:You don't want to use Container.Content conditions for Includes because they're only checked when the window is loaded (ie VideoLibrary). So if you used Container.Content(episodes) it wouldn't get loaded because when you first load VideoLibrary it will be at the TV Show level.
If you had a view that covered Music, Video, Pictures, etc you could use them based on the main window being visible.
ie
PHP Code:<include condition="IsVisible(VideoLibrary)">Video_Layout</include>
<include condition="IsVisible(MusicLibrary)">Music_Layout</include>
<include condition="IsVisible(Pictures)">Pictures_Layout</include>
<include condition="!IsVisible(VideoLibrary) + !IsVisible(MusicLibrary) + !IsVisible(Pictures)">Default_Layout</include>
I have been trying it out and I really like this, and through grouping by content type within the itemlayout as well this would allow me to reduce the amount of code a lot, but there's one big downside to this for me.
I want the itemlayout to have a different height when I'm either at the videolibrary root or the content node's root (so where you pick genre, year, etc). I've been pulling my hair out, but I doubt if there's a way to do that?