HOW-TO customize the home menu with custom categories
#2
4. Preparing the skin, Transpancy!!
Again: From now on, things talk about the “Transparancy!” skin. This will be different depending on what skin you use!

In XBMC, go to Settings -> Skin settings -> Menu. You get a whole list of what items XBMC should or should not show. I only wanted the default “Pictures”, “Music” and “Settings” displayed. For all other categories I would create my own customized menu’s or simply not use them at all (for example, I never play any dvd’s or cd’s).

5. Editing the skin, Transparancy!
The file we’ll be editing is called “Includes_Home.xml”, and is located in “~/.xbmc/addons/skin.transparency/720p/” on my XBMC Live installation. The file location could be different on your system however. As things will be getting tricky from now on, making mistakes is possible. So it’s best to create a backup of your file first. Make a copy, give it a meaningful name like “Includes_Home.bak”, and then open the “Includes_Home.xml” file in a text editor.

Find the line with the following text:
Code:
<include name="HorizontalMenu">
or
Code:
<include name="VerticalMenu">
depending on what menu you prefer. For your information, choosing between horizontal or vertical is done in Settings->Skin settings->Home Window->Horizontal home menu.

After you found the line, scroll down until you see the lines:
Code:
</content>
</control>
Above </content> you should see something similar to
Code:
<item id="16">
<label>$INFO[Skin.String(Menu_Custom3_Label)]</label>
<onclick>$INFO[Skin.String(Menu_Custom3_Path)]</onclick>
<icon>special://skin/backgrounds/settings.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Custom3_Folder)]</thumb>
<visible>Skin.HasSetting(Menu_Custom3)</visible>
</item>

Let’s start with creating our custom menu entry’s. They speak for themselves, so I won’t be explain this in detail:
Between </item> and </content>, add the following, and pay attention to the “item id”, always incrementing by 1:
Code:
<item id="17">
<label>Anime</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Anime.xsp", return)</onclick>
<icon>/share/backdrops/Anime/</icon>
</item>
<item id="18">
<label>Anime Movies</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Anime Movies.xsp", return)</onclick>
<icon>/share/backdrops/Anime Movies/</icon>
</item>
<item id="19">
<label>Comedy</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Comedy.xsp", return)</onclick>
<icon>/share/backdrops/Comedy/</icon>
</item>
<item id="20">
<label>Documentaries</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Documentaries.xsp", return)</onclick>
<icon>/share/backdrops/Documentaries/</icon>
</item>
<item id="21">
<label>Movies</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Movies.xsp", return)</onclick>
<icon>/share/backdrops/Movies/</icon>
</item>
<item id="22">
<label>TV Shows</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/TV Shows.xsp", return)</onclick>
<icon>/share/backdrops/TV Shows/</icon>
</item>
<item id="23">
<label>Other</label>
<onclick>ActivateWindow(10025,"special://profile/playlists/video/Other.xsp", return)</onclick>
<icon>/share/backdrops/Other/</icon>
</item>
Now we’ve created our custom menu items and linked them to our smartlists. If you reload the skin (in skin settings, or by rebooting) you should be able to see and use them. If not, you probably made a mistake somewhere.

But we’re not done yet. I dislike the order they are in. As we are using the standard “Music”, “Pictures” and “Settings” , they will be displayed first. I want them alphabetically, with the exception of “Others” and “Settings”, I want those in the back.

Scroll up some and cut the following code (pay attention, 2 times item id 6):
Code:
<item id="6">
<label>2</label>
<onclick>ActivateWindow(MusicLibrary)</onclick>
<include condition="!Skin.HasSetting(Home_Music_Fanart_Background)">home-music-background</include>
<include condition="Skin.HasSetting(Home_Music_Fanart_Background)">home-music-background-fanart</include>
<visible>!Skin.HasSetting(Menu_Music) + Library.HasContent(Music)</visible>
</item>
<item id="6">
<label>2</label>
<onclick>ActivateWindow(MusicFiles)</onclick>
<include condition="!Skin.HasSetting(Home_Music_Fanart_Background)">home-music-background</include>
<include condition="Skin.HasSetting(Home_Music_Fanart_Background)">home-music-background-fanart</include>
<visible>!Skin.HasSetting(Menu_Music) + !Library.HasContent(Music)</visible>
</item>
<item id="7">
<label>1</label>
<onclick>ActivateWindow(Pictures)</onclick>
<icon>special://skin/backgrounds/pictures.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Pictures_Folder)]</thumb>
<visible>!Skin.HasSetting(Menu_Pictures)</visible>
</item>
And paste it in between item 21 and 22.

Next, scroll up again, and cut the code for the settings:
Code:
<item id="12">
<label>5</label>
<onclick>ActivateWindow(Settings)</onclick>
<icon>special://skin/backgrounds/settings.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Settings_Folder)]</thumb>
<visible>!Skin.HasSetting(Menu_Settings)</visible>
</item>
And paste it at the end, behind our “other” group.
Again, reload the skin or reboot, to check on our changes.

We’re almost there, but I’m still not happy yet. By disabling the default “movies” menu item, I lost access to the sub menu of “files”. And that item is important to manually update the library or add sources. What I choose to do was to add 2 items to my “settings” sub menu, for both the music and video files.

Scroll down until you see the following code:
Code:
<control type="fixedlist" id="8001">
<visible>!Skin.HasSetting(Menu_Settings_Sub) + Container(5040).HasFocus(12)</visible>
<include condition="Skin.HasSetting(HorizontalHomeMenu)">HorizontalSubMenuLayout</include>
<include condition="!Skin.HasSetting(HorizontalHomeMenu)">VerticalSubMenuLayout</include>
<content>
Below the <content> line, add the following:
Code:
<item id="8118">
<description>Menu Video Sub Files</description>
<label>Video Files</label>
<onclick>ActivateWindow(VideoFiles)</onclick>
</item>
<item id="8119">
<description>Menu Music Sub Files</description>
<label>Music Files</label>
<onclick>ActivateWindow(MusicFiles)</onclick>
</item>
And now we’re finally done. A home menu exactly the way I wanted it!

Finale
I hope this guide was helpful. It would’ve saved me some time. Should you have any questions or find any mistakes, do tell. And if you found this information useful, leave a thank you message. It might make me write more how-to’s!

EDIT: 24/04/2011: more info on how to create your own sub menu found here : http://forum.xbmc.org/showthread.php?p=7...post782129
Reply


Messages In This Thread
[No subject] - by Myth - 2011-01-05, 21:42
RE: - by Zachary.Murphy - 2019-07-19, 22:46
Thank You - by wicked_n_raw - 2011-01-07, 07:36
[No subject] - by Myth - 2011-01-07, 11:29
[No subject] - by wicked_n_raw - 2011-01-07, 15:12
[No subject] - by Ja4220 - 2011-01-08, 00:05
[No subject] - by Myth - 2011-01-08, 02:08
[No subject] - by sladinki007 - 2011-01-10, 11:20
[No subject] - by sladinki007 - 2011-01-10, 12:20
[No subject] - by Myth - 2011-01-10, 19:59
[No subject] - by TheStretchedElf - 2011-01-12, 15:58
[No subject] - by e2zippo - 2011-01-13, 15:23
[No subject] - by wilson.joe - 2011-01-20, 12:40
[No subject] - by shalarim - 2011-01-21, 14:00
[No subject] - by Myth - 2011-01-21, 20:46
[No subject] - by hammerhead69 - 2011-01-23, 20:54
[No subject] - by joeranjensen - 2011-01-25, 15:53
[No subject] - by Myth - 2011-01-25, 19:43
[No subject] - by joeranjensen - 2011-01-25, 21:44
[No subject] - by Korath - 2011-01-26, 18:41
[No subject] - by TheStretchedElf - 2011-01-26, 21:24
[No subject] - by WhiteLighter - 2011-02-03, 09:25
[No subject] - by Herrjeh - 2011-02-12, 09:39
[No subject] - by coffras - 2011-02-20, 21:21
[No subject] - by TheStretchedElf - 2011-02-20, 23:38
[No subject] - by Wizard66 - 2011-02-21, 15:18
[No subject] - by gszx1337 - 2011-02-22, 05:34
[No subject] - by masteroc - 2011-03-10, 03:35
[No subject] - by Myth - 2011-03-10, 16:49
[No subject] - by nfusion2011 - 2011-03-21, 18:43
[No subject] - by amducious - 2011-03-23, 13:45
[No subject] - by Myth - 2011-03-28, 00:47
[No subject] - by Thermos - 2011-03-28, 18:38
[No subject] - by Myth - 2011-03-29, 08:06
[No subject] - by kaczor47 - 2011-03-29, 13:01
[No subject] - by Thermos - 2011-03-30, 01:52
[No subject] - by Myth - 2011-03-31, 18:12
[No subject] - by kaczor47 - 2011-04-02, 07:22
Submenus? - by Thermos - 2011-04-03, 07:24
[No subject] - by Myth - 2011-04-05, 18:25
Submenu help... - by Talontd - 2011-04-18, 08:13
[No subject] - by Zyeox - 2011-04-18, 18:54
[No subject] - by Myth - 2011-04-20, 19:34
[No subject] - by Myth - 2011-04-20, 19:41
[No subject] - by barly - 2011-04-22, 18:18
[No subject] - by Myth - 2011-04-24, 15:43
[No subject] - by Myth - 2011-04-24, 15:45
[No subject] - by panda78 - 2011-05-01, 01:11
[No subject] - by Simple - 2011-05-01, 09:44
[No subject] - by panda78 - 2011-05-01, 13:25
[No subject] - by Myth - 2011-05-01, 21:54
[No subject] - by Raphael Barros - 2011-05-03, 09:47
[No subject] - by Simple - 2011-05-03, 16:29
[No subject] - by Raphael Barros - 2011-05-04, 00:02
[No subject] - by ali2k1 - 2011-05-11, 14:44
[No subject] - by Parhelion - 2011-06-22, 05:01
[No subject] - by aoaaron - 2011-07-05, 13:29
[No subject] - by b-avc - 2011-07-05, 23:31
[No subject] - by Fuddster - 2011-07-09, 18:46
[No subject] - by Fizzer - 2011-08-09, 20:56
[No subject] - by Anasazi - 2011-08-26, 23:24
Sub-Menus for Confluence - by gmhhsv99 - 2011-08-28, 04:22
[No subject] - by Ryonez - 2011-09-01, 08:41
[No subject] - by Myth - 2011-09-02, 17:45
[No subject] - by Ryonez - 2011-09-03, 09:45
[No subject] - by GR00F - 2011-09-30, 12:24
[No subject] - by steve1977 - 2011-10-02, 04:51
files not showing up - by chemlab - 2012-02-27, 08:22
[No subject] - by Myth - 2012-02-28, 19:35
[No subject] - by chemlab - 2012-03-04, 08:30


Logout Mark Read Team Forum Stats Members Help
HOW-TO customize the home menu with custom categories5
This forum uses Lukasz Tkacz MyBB addons.