Delete Core Webtop Links
I ran into a situation where I wanted to re-order an entire spot of the webtop. So, how do you do that. I know how to extend the webtop using customadmin.xml, can you get rid of things the same way?
The answer is yes, using the “mergetype” attribute. Here’s how…
In my case I wanted to get rid of Events in dynamic content because I was going to create a new one, and another kind of event and re-order the whole section. Here’s how you do it in customadmin.xml:
<?xml version="1.0" encoding="utf-8"?>
<webtop>
<section id="content" mergetype="merge" permission="MainNavContentTab" label="application.adminBundle[session.dmProfile.locale].content" labelType="evaluate">
<subsection id="dynamic" mergetype="merge" label="application.adminBundle[session.dmProfile.locale].DynamicContent" labelType="evaluate" sidebar="content/sidebar.cfm" content="inc/content_overview.html">
<menu id="ContentType" mergetype="replace" label="application.adminBundle[session.dmProfile.locale].ContentType" labelType="evaluate">
<menuitem id="listdmnews" label="application.adminBundle[session.dmProfile.locale].news" labelType="evaluate" link="/content/dmnews.cfm" />
<menuitem id="listdmlink" label="application.adminBundle[session.dmProfile.locale].links" labelType="evaluate" link="/content/dmlink.cfm" />
<menuitem id="listdmfact" label="application.adminBundle[session.dmProfile.locale].facts" labelType="evaluate" link="/content/dmfacts.cfm" />
</menu>
</subsection>
</section>
</webtop>
Notice the mergetype=”replace” on the menu node. I wanted to keep news, links and facts so I pulled those values out of the core’s webtop.xml file located at
This will definitely be a powerful addition to my arsenal. Hopefully others out there can use it as well.
Happy Farcry’ing!