Hide top navigation links in displayform, editform Sharepoint 2007
-
06-10-2020 - |
Domanda
Everytime you open an item you can see navigation links on top of the page that lets you go back to the list.
Is there a way to hide those links? (screenshots below)
Soluzione
Ah, from my good old 2003 days (and still works in all versions)
You need JavaScript and CSS skills.
There are many ways to achieve what you want, maybe the easiest is:
Browse to a New Form/Edit Form
examine using F12 developer tools what JavaScript is required to hide those elements
Note: no need for jQuery, something like:
document.getElementById('[the id you explored]').style.display='none';
should be enough
Add
&toolpaneview=2
to the end of the URL and press entermore url magic: http://sharethepunto.blogspot.nl/2014/06/sharepoint-url-tricks.html
The page is now opened in Edit-mode
Add a Content Editor WebPart
Add the JavaScript required to hide the elements between
<script>[your code]</script>
tagsSave the page
Tip: do not put the code inside the CEWP but link to an external JS file (not sure if this was possible in 2007) you put somewhere in a library.
One file to rule them all