Page 1 of 1
Hide Tabs
Posted: 04 May 2017, 10:27
by durblave
Hello everyone.
I am new to OpenCATS and need some assistance.
I need to use OpenCATS for registering researchers for our project and need to hide the following tabs as we will not be using them:
1. Companies
2. Job Orders
3. Activities
Can anyone help me out.
Thanks in advance
durblave
Re: Hide Tabs
Posted: 04 May 2017, 12:18
by durblave
I have been going through the source code and I have finally found the solution.
I have added the names of the tabs I want hidden to the printTabs method in the TemplateUtility.php class on line 602 like so
if (empty($tabText) || $tabText === 'Companies' || $tabText === 'Job Orders' || $tabText === 'Activities')
{
continue;
}
Originally the line was:
if (empty($tabText))
{
continue;
}
and I only added the modules I didnt want visible.
I am running OpenCATS Version 0.9.3 Inferno.
Re: Hide Tabs
Posted: 20 Jun 2017, 12:18
by RussH
Thank you very much for sharing - I've flagged this to see if we can add this into the documentation someplace
https://github.com/opencats/OpenCATS_Do ... n/issues/8
Re: Hide Tabs
Posted: 19 Sep 2017, 07:53
by shreeprasath
How to add Extra Tab guys
Re: Hide Tabs
Posted: 19 Sep 2017, 09:57
by cptr13
I don't think that's quite as easy as hiding tabs
You could put that as a feature request on our github.