View source

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

View source

Martin Evans
Hi all,

Probably a bit of a newbie quesion. Does anyone know how to hide the option
'view source' for unregistered users? Also the wiki history - these are
things I don't want visitors to see.

Thanks,
Martin
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: View source

Florin Ciubotaru
Hi Martin,

All menu entries can be customized by overriding the menuview.vm template.
The recommended way is to do this in the skin document(See "Wiki
Administration" -> "Presentation" -> "Skin" -> "Customize").
You will need to extent the XWiki.XWikiSkins class with a textarea property
names "menuview.vm".  After that you should edit the skin document and paste
and updated version of your template(in your case the template is
"/xwiki/templates/menuview.vm").
For more details about skin customization see:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HD.OverridingtheSkincomponents

Hope this helps,
Florin Ciubotaru

On Fri, Jun 17, 2011 at 12:46 PM, Martin Evans <[hidden email]>wrote:

> Hi all,
>
> Probably a bit of a newbie quesion. Does anyone know how to hide the option
> 'view source' for unregistered users? Also the wiki history - these are
> things I don't want visitors to see.
>
> Thanks,
> Martin
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users