Kodi Community Forum

Full Version: Problem with views
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys i have this in MyVideoNav :

PHP Code:
<views>50,51,52,53,54,55,56,57,58,59</views

and all views are separated like this

Code:
<control type="group">
        <visible>Control.IsVisible(57)</visible>
                .............all view related code goes here.....
</control>

and I'm trying to add a view as

Code:
<views>50,51,52,53,54,55,56,57,58,59[b],501[/b]</views>

and

Code:
<include>View_50_List</include>
        <include>View_51</include>
        <include>View_52</include>
        <include>View_53</include>
        <include>View_54</include>
        <include>View_55</include>
        <include>View_56</include>
        <include>View_57</include>
        <include>View_58</include>
        <include>View_59</include>
               [b]<include>View_501</include>[/b]

But when I do so, views get mixed - as there are 2 or more views active at the same time.

What am I missing? Is there a 10 views limit?
Does this silence mean that it should work?
Yes it should work but you haven't given anywhere near enough information for anyone to offer a solution even a screenshot or 2 would do. But its most likely some visible condition or control ID wrong you have
Just because I haven't got an idea what to offer. I had a look at Confluence and seen you mainly use 507 508 instead of 57 and 58 but thought that's just your choice.

I'll double check code and report back. Thanks.
Like Jezz_X said it must be visible condition or control ID i have had this problem a few times
It is just my choice they can be anything you want as long as they don't clash with other controls and also if you have a number in <views></views> that doesn't actually exist it will error
Might be a silly question but have you given the new view list the proper ID?
Hitcher Wrote:Might be a silly question but have you given the new view list the proper ID?

Yup, ID is assigned but as others said it collided with button that was using the same ID.

Includes - heaven and hell :-)


Thank you all for help.