Kodi Community Forum

Full Version: Open directly to sub-menu?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to launch Kodi directly to a sub-menu item. I created a main menu item for TV Shows, but I would like to go directly to "Recent Episodes" on startup. Not sure how to do that; any help greatly appreciated. Please'n'thanks.
Open your home.xml file and add after the <defaultcontrol> on a new line

<onload condition="Window.Previous(startup)">ActivateWindow(myvideolibrary,recentlyaddedepisodes)</onload>

Can be any other sub section from the list here, but this one should work for you.
http://kodi.wiki/view/Opening_Windows_and_Dialogs