Re: [xwiki-users] is there a way to disable export to rtf, html and xar leaving just pdf
Hi,
is there a way to disable export to rtf, html and xar leaving just pdf?
Is ther a way to disable exporting altogether?
dev geek wrote:
Hi,
is there a way to disable export to rtf, html and xar leaving just pdf?
Is ther a way to disable exporting altogether?
Yes. Depending on what you mean by "disable", you can: - override menuview.vm to remove the menu entries corresponding to those exports (but the URLs will continue to work) - edit WEB-INF/struts-config.xml and remove the mapping for /export/ to also disable the URLs (for all export formats) - modify, compile and deploy a custom version of the com.xpn.xwiki.web.ExportAction and com.xpn.xwiki.pdf.impl.PdfExportImpl to allow just the PDF export -- Sergiu Dumitriu http://purl.org/net/sergiu/
## hi, I have commented all the line in print menu(as follows), but I cannot remove "export" menu. Is there any lines I need to remove? Thanks. ## Print menu ## ## xwikitopmenuentrystart('javascript:window.print()' $msg.get('core.menu.print') 'tmPrint') ## submenuitem($doc.getURL('view', "xpage=print&$!docvariant") $msg.get('core.menu.preview') 'tmPrintPreview') ## submenuseparator() ## submenuitem($doc.getURL('export', "format=pdf&$!docvariant") $msg.get('core.menu.export.pdf') 'tmExportPdf') ## submenuitem($doc.getURL('export', "format=rtf&$!docvariant") $msg.get('core.menu.export.rtf') 'tmExportRtf') ## submenuitem($doc.getURL('export', "format=html&$!docvariant") $msg.get('core.menu.export.html') 'tmExportHtml') ## submenuitem($doc.getURL('export', "format=xar&name=$util.encodeURI($doc.fullName)&pages=$util.encodeURI($doc.fullName)&$!docvariant") $msg.get('core.menu.export.xar') 'tmExportXar') ## xwikitopmenuentryend() ## -- View this message in context: http://n2.nabble.com/Re-is-there-a-way-to-disable-export-to-rtf-html-and-xar... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 03/19/2010 10:30 AM, S.L wrote:
## hi,
I have commented all the line in print menu(as follows), but I cannot remove "export" menu. Is there any lines I need to remove? Thanks.
## Print menu ## ## xwikitopmenuentrystart('javascript:window.print()' $msg.get('core.menu.print') 'tmPrint') ## submenuitem($doc.getURL('view', "xpage=print&$!docvariant") $msg.get('core.menu.preview') 'tmPrintPreview') ## submenuseparator() ## submenuitem($doc.getURL('export', "format=pdf&$!docvariant") $msg.get('core.menu.export.pdf') 'tmExportPdf') ## submenuitem($doc.getURL('export', "format=rtf&$!docvariant") $msg.get('core.menu.export.rtf') 'tmExportRtf') ## submenuitem($doc.getURL('export', "format=html&$!docvariant") $msg.get('core.menu.export.html') 'tmExportHtml') ## submenuitem($doc.getURL('export', "format=xar&name=$util.encodeURI($doc.fullName)&pages=$util.encodeURI($doc.fullName)&$!docvariant") $msg.get('core.menu.export.xar') 'tmExportXar') ## xwikitopmenuentryend()
What file are you editing? In the recent versions this menu is located in skins/colibri/contentmenu.vm -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
dev geek -
S.L -
Sergiu Dumitriu