I couldn't get the AJS scripts to work to fix this issue. In the end, I used JavaScript to remove the entry with the following
<script> document.getElementById('add-page-item').style.display= "none"; </script>
This works in Conf 4.2:
AJS.$('#add-menu-link-space li:first').remove();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just one thing to add: put it between
<
script
type
=
"text/javascript"
>
and
</
script
>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This didn't seem to work unfortunately. I'm using version 4.2.4 version of Confluence and added the script tags. Do I need to enable JavaScript somewhere?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Brian Bricham: Matthew's answer was almost right, but really it the JS needs wrapping in an AJS.toInit method...
In Confluence Admin | Look & Feel | Custom HTML paste this into At the End of the BODY:
<script> AJS.toInit(function(){ AJS.$('#add-menu-link-space li:first').remove(); }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
Can you let me know the Confluence version you are using?
Thanks,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter
I'm using 4.2.4 and unfortunately the script didn't work (even with the script tags)
Any ideas? Do these scripts need to be enabled somehow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The easiest way to do this would be to just add a little jQuery that removes the first item in the drop down list. I've used jQuery before to customize my menus like that and it works great.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.