I use 1 template.
Back-end I'd like to show
only on ID 1 (home) an extra tab with some TV's using ManagerManager.
In chunk mm_demo_rules I have add:
if($id !=1) {
mm_hideFields('laatste-nieuws');
mm_hideTabs('laatste-nieuws');
}
// make tab for managing content
mm_createTab('Laatste nieuws', 'laatstenieuws');
mm_moveFieldsToTab('laatste-nieuws', 'laatstenieuws');
this doesn't hide the tab, how do I hide the tab for the other resources?
mm_hideTabs doesn't seem to work?
This doesn't work either for the tab:
if($id !=1) {
mm_hideFields('laatste-nieuws');
mm_hideTabs('Laatste nieuws', 'laatstenieuws');
}
if($id =1) {
mm_createTab('Laatste nieuws', 'laatstenieuws');
mm_moveFieldsToTab('laatste-nieuws', 'laatstenieuws');
}
mm_hideTab('laatstenieuws'); gives error, hideTab
s doesnt do anything
[ed. note: fourroses666 last edited this post 14 years ago.]