v15 Create custom submenu for custom home button?
#1
I'm using the stock Confluence skin, and doing some customization.

I've created a custom button between Videos and TV Shows by editing the home.xml and adding a link to the VideoSets:
<item id="19">
<label>Sets</label>
<onclick>ActivateWindow(Videos,MovieSets,return)</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>

Under that button I'd like to add a submenu, I've looked through the includeshomemenuitems.xml but I'm not sure how to add a new subarea.
Do I just add an include with the name of my label like so?

<include name="HomeSubMenuSets">
<control type="image" id="342323">
<width>35</width>
<height>35</height>
<texture border="0,0,0,3" flipx="true">HomeSubEnd.png</texture>
</control>
<control type="button" id="51923">
<include>ButtonHomeSubCommonValues</include>
<label>Tags</label>
<onclick>ActivateWindow(Videos,MovieTags,return)</onclick>
</control>
<control type="image" id="90168">
<width>35</width>
<height>35</height>
<texture border="0,0,0,3">HomeSubEnd.png</texture>
</control>
</include>

Thanks!
Reply
#2
Solved: I needed to also add another section to the home.xml linking the new submenu to the new home menu item:
In home.xml
<control type="grouplist" id="90109">
<include>HomeSubMenuCommonValues</include>
<onleft>90109</onleft>
<onright>90109</onright>
<!-- Buttons for the grouplist -->
<visible>Container(9000).HasFocus(999994)</visible>
<include>HomeSubMenuSets</include>
</control>

The <visible>Container(9000).HasFocus(19)</visible> is what links the submenu to my new button by the id (19 in this case)
Reply

Logout Mark Read Team Forum Stats Members Help
Create custom submenu for custom home button?0