Remove Home page tool from left menu.

27 views
Skip to first unread message

Harshita Gupta

unread,
Mar 10, 2021, 12:00:56 AM3/10/21
to Sakai Development
Hi All,

How can we remove/configure home page tool.  

For example I want to remove preferences from left menu but not from profile drop down. How that can be done.

Thanks in advance.  

Sanghyun Jeon

unread,
Mar 10, 2021, 12:24:32 AM3/10/21
to Harshita Gupta, Sakai Development
You can remove it via the Sites tool.
S



--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/fff0d3c7-6a7d-4cb5-9bf5-6e34c92554f8n%40apereo.org.


--
Sanghyun Jeon Ph.D
Senior Academic Technology Specialist
Pomona College

Harshita Gupta

unread,
Mar 10, 2021, 1:12:02 AM3/10/21
to Sanghyun Jeon, Sakai Development
Hi Sanghyun,

Thanks, can you please help me with an example. 

If I remove tool from home --> edit --> tool order --> select profile --> remove this tool. (this will remove the change profile option as well from the profile drop-down)

Also If I want to hide worksite setup tool from all the guest users, in there home left menu. How can I do that. 

Michael Greene II

unread,
Mar 10, 2021, 8:54:18 AM3/10/21
to Harshita Gupta, Sanghyun Jeon, Sakai Development
It sounds like you want to remove the preferences tool from every user, is that correct? If so, you should be able to
  1. go to admin workspace
  2. go to the sites tool
  3. search for !user in the middle (site id) box in the tabbed navigation
  4. click the site name to edit
  5. click add/edit pages
  6. click the page-id you wish to remove
  7. click remove page from the tabbed navigation
  8. save and complete the site edit
If you want that change to propagate to all users' home sites, I believe there is a Job Scheduler job to do that. We have Longsight to that part so i'm unsure.

If you only want this change to take place in a single site, choose a different site in step 3 and everything else should be the same.


Thanks!

Michael Greene, Associate Director
Learning Technology Services and Strategy
Book a meeting with me

From: saka...@apereo.org <saka...@apereo.org> on behalf of Harshita Gupta <harshita....@gmail.com>
Sent: Wednesday, March 10, 2021 1:12 AM
To: Sanghyun Jeon <euk...@gmail.com>
Cc: Sakai Development <saka...@apereo.org>
Subject: Re: [sakai-dev] Remove Home page tool from left menu.
 

alaanizar

unread,
Mar 10, 2021, 9:22:49 AM3/10/21
to Michael Greene II, Harshita Gupta, Sanghyun Jeon, Sakai Development
+1

AFTER doing that, I think you can remove all the existing mysorkspace sites, and once a user logged in they will have this new myworspace site WITH their old data.

This last part of having the new Myworkspace WITH THE OLD DATA is yet to be confirmed. I'm not sure of this!

I've read somewhere that as long as the USER is not deleted. Their data is still in the system. When you remove a site, data can be recovered if you reassign the same siteid to the new one.

We need more clarification on this point, thanks Admins!!

Yours,



Sent from my Galaxy
--
This message has been scanned for viruses and dangerous content
, and is believed to be clean.

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.

Sanghyun Jeon

unread,
Mar 10, 2021, 12:51:10 PM3/10/21
to alaanizar, Michael Greene II, Harshita Gupta, Sakai Development
+1
for removing the existing users' tool, you can run the webservice call, removePageFromSite

S

Harshita Gupta

unread,
Mar 12, 2021, 4:14:10 AM3/12/21
to Sanghyun Jeon, alaanizar, Michael Greene II, Sakai Development
Thanks all for your valuable inputs. 

Please correct me if I am wrong, as per my understanding, removing the tool using the above suggested options, will remove the functionality of that tool from all over the application. 

For example, if I remove preferences. I will not be able to access it from anywhere. 

I do not want to remove the tool, but just want to hide it from left menu on the home page. or we could say that I want to access those tools from the profile icon drop-down in place of left home menu. 

In ..\portal\portal-render-engine-impl\impl\src\webapp\vm\morpheus\includePageNav.vm is the place where home page tools list are defined in
class="Mrphs-toolsNav__menuitem--link

I am not sure if I want to hide one <li> tag from HTML itself in order to remove it from left menu, which HTML Or .vm I should make changes. 

Commenting <li> tag from  includePageNav.vm is removing all the menu option.

Thanks again. 

Harshita Gupta

unread,
Mar 12, 2021, 4:23:31 AM3/12/21
to Sanghyun Jeon, alaanizar, Michael Greene II, Sakai Development
As shown in the attached screen shot, where I could comment this code in actual code. 
Hide left menu.PNG

Michael Greene II

unread,
Mar 12, 2021, 8:48:53 AM3/12/21
to Harshita Gupta, Sanghyun Jeon, alaanizar, Sakai Development
The JAVA devs probably have a better solution than this but I'd probably just end up writing some Javascript to select that particular li and hide it if it were me. If there's a JAVA method to do that, I'd recommend doing it that way, I just don't know.

Thanks!

Michael Greene, Associate Director
Learning Technology Services and Strategy
Book a meeting with me

From: Harshita Gupta <harshita....@gmail.com>
Sent: Friday, March 12, 2021 4:23 AM
To: Sanghyun Jeon <euk...@gmail.com>
Cc: alaanizar <alaa...@iihem.ac.ma>; Michael Greene II <michael...@duke.edu>; Sakai Development <saka...@apereo.org>
Reply all
Reply to author
Forward
0 new messages