On 12/06/2012 05:44 PM, Sergiu Dumitriu wrote:
On 12/06/2012 11:39 AM, H.-Dirk Schmitt wrote:
Hi!
I'm looking for a receipt to display a local file inside an xwiki page.
The use case is that this is an intranet documentation provided by xwiki.
Every user in the audience has normally some configuration files in a
standardized location.
The content may differ between for each user (or concrete his
workstation). This is also the reason not to expose the files on a
webserver and use the RemoteCode marco.
Current solution is to at a link [[ConfigFile>>file:///etc.....]]
It would be nicer to display the content inside the xwiki page.
For security reasons, that kind of thing is not supposed to be doable.
Try using an iframe.
It's also doable using the programming right (providing a macro for
example), but then again you must be careful what you allow (what paths,
etc.) so that users can't abuse it and display /etc/shadow or whatever
they fancy.
Jerome.