HOW-TO customize the home menu with custom categories
#48
How to create your own sub menu

Due to popular demand, here's some more information about sub menu's in Transparancy!. This post will be rather straight to the point, but i'm hoping after reading the main tutorial you should be able to customize this the way you want it. If you are having trouble, post here and i'll try to help.

As an example we'll be making 1 Anime home menu, with Anime Series and Anime Movies as sub menu. I was trying to get the main menu item to show both the movies AND the series. But havent been able to get it to work (so far).

The smart playlists
Anime Series.xsp
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
    <name>Anime Series</name>
    <match>one</match>
    <rule field="path" operator="contains">/Anime/</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>
Anime Movies.xsp
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Anime Movies</name>
    <match>one</match>
    <rule field="path" operator="contains">/Anime Movies/</rule>
    <order direction="ascending">title</order>
</smartplaylist>

The skin configuration, Includes_Home.xm
Main menu item
Find
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>
You will find this 2 times, once for the vertical menu, once for the horizontal menu.
After, add
Code:
                <item id="17">
                    <label>Anime</label>
                    <onclick>ActivateWindow(10025,"special://profile/playlists/video/Anime Series.xsp", return)</onclick>
                    <icon>special://skin/backgrounds/settings.jpg</icon>
                </item>


The sub menus
Find
Code:
<include name="SubMenu">
        <control type="group" id="8000">

Before
Code:
<control type="fixedlist" id="8001">
                <visible>Skin.HasSetting(Menu_Videos_Sub) + Container(5040).HasFocus(1)</visible>

Add (Note the HasFocus(17) thingy. the 17 is the id of our main menu item.)
Code:
<control type="fixedlist" id="8001">
                <visible>Container(5040).HasFocus(17)</visible>
                <include condition="Skin.HasSetting(HorizontalHomeMenu)">HorizontalSubMenuLayout</include>
                <include condition="!Skin.HasSetting(HorizontalHomeMenu)">VerticalSubMenuLayout</include>
                <content>
                    <item id="8902">
                        <label>Anime Series</label>
                        <onclick>ActivateWindow(10025,"special://profile/playlists/video/Anime Series.xsp", return)</onclick>
                    </item>
                    <item id="8903">
                        <label>Anime Movies</label>
                        <onclick>ActivateWindow(10025,"special://profile/playlists/video/Anime Movies.xsp", return)</onclick>
                    </item>
                </content>
            </control>
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.