Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Remove toolbar buttons
System
Hi,
I am trying to customize the toolbar in TeamSite without success.
What I want to do is to remove the "Sites" and "Targeting" buttons.
I tried to customize it changing the file customer.xml
This is my code:
?xml version="1.0" encoding="UTF-8"?
iw-ui
toolbar configId="iw.cc.globalToolbar.dashboardConfig"
iwov-delete
button configId="iw.cc.globalToolbar.dashboardConfig.site.add"/
/iwov-delete
iwov-delete
button configId="iw.cc.globalToolbar.dashboardConfig.tgt.rule.add"/
/iwov-delete
iwov-delete
button configId="iw.cc.globalToolbar.dashboardConfig.more.menu.tgt.condition.add"/
/iwov-delete
iwov-delete
button configId="iw.cc.globalToolbar.dashboardConfig.more.menu.tgt.action.add"/
/iwov-delete
iwov-delete
button configId="iw.cc.globalToolbar.dashboardConfig.more.menu.tgt.segment.add"/
/iwov-delete
/toolbar
toolbar configId="iw.cc.globalToolbar.foldersConfig"
iwov-delete
button configId="iw.cc.globalToolbar.foldersConfig.site.add"/
/iwov-delete
/toolbar
/iw-ui
I rebuild it, but it has no effect.
Do you have any idea?
Thanks a lot for your help
Kind Regards
Gabriele
Find more posts tagged with
Comments
bhas1234
Have you restarted the Jboss service?
Regards
Bhaskaran Govindan
RonaldV
Hi Gabriele,
I tried the same via the config files but failed. I think this is not supported.
It is possible (but unsupported!) by using jquery to locate the buttons and then hide them. This is far from straight forward because the buttons are loaded after some ajax-calls so you need to add custom code to teamsite.extension.js:
1. load jquery.js
2. start a setInterval and wait until the buttons appaer ($('.wcm-global-header table.x-toolbar-ct button.x-btn-text')
3. once they are there hide them
4. make it more userfriendly by first hiding the toolbar in custom-css
5. and show the toolbar once the buttons are hidden (to prevent the buttons to first show and then disappear).
Hope this helps.