Hide Tabs

Please describe the issue you're having
If you accept the answer, please mark the topic as [SOLVED] by clicking the tick.

Moderators: RussH, cptr13

Forum rules
Just please remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but respect our space and keep your comments directed to the topic at hand.
Post Reply
durblave
Posts: 2
Joined: 04 May 2017, 10:18
what is two(2) plus three(3) ?: 5

Hide Tabs

Post by durblave » 04 May 2017, 10:27

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

durblave
Posts: 2
Joined: 04 May 2017, 10:18
what is two(2) plus three(3) ?: 5

Re: Hide Tabs

Post by durblave » 04 May 2017, 12:18

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.

User avatar
RussH
Site Admin
Posts: 810
Joined: 12 Apr 2008, 08:28
what is two(2) plus three(3) ?: 5
Location: UK
Contact:

Re: Hide Tabs

Post by RussH » 20 Jun 2017, 12:18

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
RussH

Report your issues and feature requests;
https://github.com/opencats/opencats/issues

Please CLICK THE TICK to accept the answer!

shreeprasath
Posts: 10
Joined: 02 Jun 2017, 10:55
what is two(2) plus three(3) ?: 5

Re: Hide Tabs

Post by shreeprasath » 19 Sep 2017, 07:53

How to add Extra Tab guys

User avatar
cptr13
Posts: 414
Joined: 23 Apr 2008, 01:53
what is two(2) plus three(3) ?: 5
Location: Mobile, AL
Contact:

Re: Hide Tabs

Post by cptr13 » 19 Sep 2017, 09:57

I don't think that's quite as easy as hiding tabs :) You could put that as a feature request on our github.

Post Reply