Kodi Community Forum
force specific page to be in list format - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Pellucid (https://forum.kodi.tv/forumdisplay.php?fid=267)
+---- Thread: force specific page to be in list format (/showthread.php?tid=349785)



force specific page to be in list format - nero12 - 2019-12-04

hi, 

I am trying to force a specific page within a plugin to be in list format, but only this page, 
how do i go about this ? i understand the author wants some standard for plugins before he wants to actively support. 

i have tried adding the following in the function:
xbmc.executebuiltin('Container.SetViewMode(50)')

using kodi 18.5 and latest pellucid v

would appreciate any help that can point me to the right direction.


RE: force specific page to be in list format - thedeadman - 2019-12-08

The view mode is set by the content of the container. I don't know enough about the way addons work, but if you set the content of the container to 'files', it should render as a list.


RE: force specific page to be in list format - nero12 - 2019-12-15

(2019-12-08, 15:53)thedeadman Wrote: The view mode is set by the content of the container. I don't know enough about the way addons work, but if you set the content of the container to 'files', it should render as a list.

Thanks Alot!, we spent several weeks trying to figure this out, much appreciate your support on your skin!.


RE: force specific page to be in list format - nero12 - 2019-12-15

Question:

In view_videoFiles.xml

i modified the code to look like shown below:
i like the below code further modified, so for the below itemlayout i want to include "files" in the condition: !Container.Content(Files). but its not working. 
any other way of getting it to work ? 


xml:
    <control type="panel" id="50">
                <visible>$EXP[isVideoList]</visible>
                <posx>90</posx>
                <posy>row-5-begin</posy>
                <width>1800</width>
                <height>22-row</height>
                <onleft>9000</onleft>
                <onright>60</onright>
                <ondown>50</ondown>
                <onup>50</onup>
                <pagecontrol>60</pagecontrol>
                <scrolltime tween="cubic" easing="out">600</scrolltime>
                <itemlayout condition="!Container.Content(Movies) + !Container.Content(Seasons) + !Container.Content(TVShows) + !Container.Content(Sets)" height="280" width="255">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>250</width>
                        <height>250</height>
                        <aspectratio>stretch</aspectratio>
                        <texture border="6">colors/black.png</texture>
                        <bordertexture border="6" colordiffuse="22FFFFFF">colors/black.png</bordertexture>
                        <bordersize>6</bordersize>
                        <colordiffuse>overlay</colordiffuse>
                    </control>
                    <control type="image">
                        <left>1</left>
                        <top>0</top>
                        <width>250</width>
                        <height>250</height>
                        <bordersize>5</bordersize>
                        <texture background="true">$INFO[Listitem.Icon]</texture>
                        <aspectratio>keep</aspectratio>
                        <visible>!Container.Content(Episodes)</visible>
                    </control>
                    <control type="image">
                        <left>1</left>
                        <top>0</top>
                        <width>200</width>
                        <height>160</height>
                        <aspectratio>scale</aspectratio>
                        <bordersize>5</bordersize>
                        <texture background="true">$INFO[Listitem.Icon]</texture>
                        <visible>Container.Content(Episodes)</visible>
                    </control>
                    <control type="textbox">
                        <visible>isempty(listitem.title)</visible>
                        <posx>12</posx>
                        <posy>248</posy>
                        <width>204</width>
                        <height>3-row</height>
                        <font>thumbTitle</font>
                        <wrapmultiline>true</wrapmultiline>
                        <textcolor>textActive</textcolor>
                        <label>$INFO[ListItem.label]</label>
                    </control>
                    <control type="image">
                        <left>170</left>
                        <top>130</top>
                        <width>30</width>
                        <height>30</height>
                        <aspectratio>keep</aspectratio>
                        <texture>$INFO[ListItem.Overlay]</texture>
                    </control>
                </itemlayout>
                <focusedlayout condition="!Container.Content(Movies) + !Container.Content(Seasons) + !Container.Content(TVShows) + !Container.Content(Sets)" height="280" width="255">
                    <include>focusThumb</include>



RE: force specific page to be in list format - thedeadman - 2019-12-17

Nero12: Don't change the skin. Those viewing conditions are very fragile - you'll tie yourself in knots and I won't be able to help.

Rather, set the content in the addon's code.


RE: force specific page to be in list format - nero12 - 2019-12-18

i managed to fix it, thanks