Kodi Community Forum

Full Version: Adding additional menu with content display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I am having issue with displayed content in my additional menu not redirecting to the addon when it is clicked. Currently, all items are displayed but there is no click action. 
The onclick for this panel is showing
Code:
 <onclick>$INFO[ListItem.FileNameAndPath]</onclick>
which I'm assuming is incorrect. The addon is a program type. Thanks in advance for your assistance

Code:
<control type="group" id="80000">
                    <include>imagefade</include>
                    <visible>String.IsEqual(Container(9000).ListItem.Property(id),user_interface)</visible>
                    <include content="Visible_Right_Delayed">
                        <param name="id" value="user_interface"/>
                    </include>
                        
                    <control type="panel" id="80100"> 
                        <left>65</left>
                        <top>80</top>
                        <right>0</right>
                        <bottom>0</bottom>
                        <onup>9000</onup>
                        <onright>9000</onright>
                        <onup>14100</onup>
                        <ondown>14100</ondown>
                        <onclick>$INFO[ListItem.FileNameAndPath]</onclick>
                        <preloaditems>2</preloaditems>
                        <scrolltime tween="cubic" easing="out">500</scrolltime>
                        <orientation>vertical</orientation>
                        <!--<visible>Integer.IsGreater(Container(70100).NumItems,0) | Container(70100).IsUpdating</visible>-->
                        <itemlayout width="330" height="396">
                            <control type="group">
                                <top>130</top>
                                <include content="InfoWallMusicLayout">
                                    <param name="fallback_image" value="DefaultFavourites.png" />
                                    <param name="focused" value="false" />
                                </include>
                            </control>
                        </itemlayout>
                        <focusedlayout width="330" height="396">
                            <control type="group">
                                <depth>DepthContentPopout</depth>
                                <top>130</top>
                                <animation effect="zoom" start="100" end="110" time="200" tween="sine" easing="inout" center="170,320">Focus</animation>
                                <animation effect="zoom" start="110" end="100" time="200" tween="sine" easing="inout" center="170,320">UnFocus</animation>
                                <include content="InfoWallMusicLayout">
                                    <param name="fallback_image" value="DefaultFavourites.png" />
                                    <param name="focused" value="true" />
                                </include>
                            </control>
                        </focusedlayout>
                            <content>plugin://plugin.program.userinterface/?mode=builds</content>
                    </control>
you would need to know the plugin
<onclick>ActivateWindow(plugin)</onclick> not done any with plugin but have added extra menus https://forum.kodi.tv/showthread.php?tid=333279


it would be like a menu item
 <item>
 <label>$LOCALIZE[3]</label>
 <onclick>ActivateWindow(Videos,root)</onclick>
       <property name="menu_id">$NUMBER[11000]</property>
 <thumb>icons/sidemenu/videos.png</thumb>
       <property name="id">video</property>
       <visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
      </item>
(2018-12-12, 05:29)the_other_guy Wrote: [ -> ]you would need to know the plugin
<onclick>ActivateWindow(plugin)</onclick> not done any with plugin but have added extra menus https://forum.kodi.tv/showthread.php?tid=333279


it would be like a menu item
 <item>
 <label>$LOCALIZE[3]</label>
 <onclick>ActivateWindow(Videos,root)</onclick>
       <property name="menu_id">$NUMBER[11000]</property>
 <thumb>icons/sidemenu/videos.png</thumb>
       <property name="id">video</property>
       <visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
      </item>
Thank you for the suggestion. I will try replacing 
Code:
 <onclick>$INFO[ListItem.FileNameAndPath]</onclick>
with the window id info generated from favorites. I will let know how it goes.
(2018-12-12, 05:29)the_other_guy Wrote: [ -> ]you would need to know the plugin
<onclick>ActivateWindow(plugin)</onclick> not done any with plugin but have added extra menus https://forum.kodi.tv/showthread.php?tid=333279


it would be like a menu item
 <item>
 <label>$LOCALIZE[3]</label>
 <onclick>ActivateWindow(Videos,root)</onclick>
       <property name="menu_id">$NUMBER[11000]</property>
 <thumb>icons/sidemenu/videos.png</thumb>
       <property name="id">video</property>
       <visible>!Skin.HasSetting(HomeMenuNoVideosButton)</visible>
      </item>
 Hello,

Unfortunately, it did not work as expected. Clicking on any of the content takes me into the plugin, it does not play the content. Anything else I can try?

Thanks
your most likely copying wrong part of the line in favs, Pm me the text if you like.