How to hide Create button from page menu for user with edit rights??

Last modified by Nikita Petrenko on 2026/08/07 13:54

Follow these steps:

  1. Navigate to the DefaultSkin page via shortcut and type "Skin" into search field
  2. Select Default XWiki Skin
  3. Press "Edit this skin"
  4. Add the new overriding template, name it layoutExtraVars.vm and place these lines of code in the content block. If a template already exists, you can place that code at the beginning or end of the existing customization code.
    #if ($xwiki.hasAccessLevel('edit', $xcontext.user))
      #set ($displayCreateMenu = false)
    #end

Before:

initial state.png

After:

after applying code.png

Get Connected