0 Votes

Enhancements

Last modified by Jeff McDonald on 2023/07/11 08:42

Open External Links in New Tabs

To open external links in new tabs, follow these instructions:

https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20open%20external%20links%20in%20a%20new%20tab%252Fwindow%20by%20default

Modify Look & Feel of XWiki...

I would like to hide all the "Last modified by" stuff for users that do not have EDIT rights...

See Velocity Training.

See Scripting API Guide.

See How to hide the last modified information when viewing pages?

{{velocity}}
Welcome $xcontext.user !
#if($hasEdit)
  You will see the following picture because you are an administrator:
  image:picture.jpg
#end
{{/velocity}}

overwrite the flamingo/contentheader.vm

#if($hasEdit)
<div class="xdocLastModification">
  #if (!$doc.isMostRecent())
    $services.localization.render(
     'core.document.modificationWithVersion',
      ["<a href='$tdoc.getURL('view', ""rev=$tdoc.version"")'>$tdoc.version</a>",
      $xwiki.getUserName($authorName),
      $xwiki.formatDate($tdoc.date)
    ])
  #else
    $services.localization.render('core.footer.modification', [$xwiki.getUserName($authorName), $xwiki.formatDate($tdoc.date)])
  #end
</div>
#end