๐คบ "Hiding" Links in the Right-Side Navigation Menu of Application Records
๐งSlate Adventures In Progress๐ง
This page will be updated regularly as we learn of new Slater contributions so be sure to check back. ย Also, if you notice any broken links, content in need of updating, or other ReSources you would like to share, you can leave an anonymous comment below. Even better, we would be thrilled to thank you personally and (with your permission) give a community shoutout. Contact us at resource@reworkflow.com.
Important Notes:ย
The recommendations below have been tested in a few Slate instances and proved to work as of the time this article was published/last updated. However, every local context has potential differences that could cause unintential behaviors. Additionally, Technolutions ongoing deployment of Slate enhancements could potentially result in disrupting this "Slater hack". It isย highly recommended to experiment in your Slate test environment first and to proceed with caution in production.
Additionally, as Chase Matzinger points out (๐ requires login) along with what ReW has also experienced, this workaround does not prevent the original default dashboard and data from flashing briefly upon page loading before the JavaScript runs. This could raise some security concerns for hiding sensitive / personal identifiable information.
The Why
โ Feedback Request: Please lend your vote (and comment if you are inspired) to:
- Custom Application Dashboard โ Slate Feedback (๐ requires login).
- Application Update - Permission Expansion โ Slate Feedback (๐ requires login).
The How
- If you have not done so already, create anย Customizing Records > Dashboards (i.e. Type = Record | Base = Application").
- In the "Edit Dashboard" tab, click the "Source" button in the editor ribbon.
- ย Insert the following script based on your intended use case:
Hiding both Impersonate > links:
Hiding the Impersonate > Applications link:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> //Hide built-in impersonate links $('li > a:contains("Impersonate")').remove();};</script> [Lorem ipsum --> i.e. all of your awesome dashboard content you want to put in the body] </body> </html>
Hiding the Impersonate > Status Page link:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> //Hide built-in impersonate links $('li > a:contains("Impersonate > Applications")').remove();};</script> [Lorem ipsum --> i.e. all of your awesome dashboard content you want to put in the body] </body> </html>
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> //Hide built-in impersonate links $('li > a:contains("Impersonate > Status Page")').remove();};</script> [Lorem ipsum --> i.e. all of your awesome dashboard content you want to put in the body] </body> </html>
๐Related ReSources
- Hiding Slate's Default Dashboards
- Removing Irrelevant Links on Profile Tab
- ๐งCustom Rebuilding the Default Application Dashboard for Workflows newer functionality (Coming Soon)๐ง
- ๐งCustom Dashboard Examples (Coming Soon)๐ง
No Comments