Re: [xwiki-users] vm files in Cloud
Date: Wed, 11 Apr 2012 14:23:38 +0200 From: Jean-Vincent Drean <[email protected]> To: XWiki Users <[email protected]> Subject: Re: [xwiki-users] vm files in Cloud
Hi,
On Wed, Apr 11, 2012 at 2:03 PM, Martin Evans <[email protected]> wrote:
Hi, I have a Cloud distribution, which means I don't have access to the .vm files. When I want to make a change to the behaviour of my wiki, this causes big problems. Sometimes I can over-ride the vm file by adding in a new TextArea field, but it's normally impossible to know where to put it.
What do you mean ? Are you looking at http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins ? Is there anything unclear ?
Then there is the problem of default behaviour. If I insert a blank TextArea to over-ride vm behaviour, I get nothing. I need to access the vm file to see what's currently written there before making a change. But the vm files do not appear in the search. Does anyone have any experience of this frustrating lack of functionality and ease of use?
You actually do have access to the .vm through your browser.
From http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HD.OverridingtheSkin... :
----------------------------------------8<---------------------------------------- Copy the original content of the menuview.vm template and paste it in the property field named menuview.vm. If you don't have access to the server filesystem, open the template by following http://localhost:8080/xwiki/skins/colibri/menuview.vm
----------------------------------------8<---------------------------------------- Of course you need to replace localhost:8080 in the URL above by the URL of your wiki.
Now, putting my XWiki-Cloud-Admin hat on, I must say that it is not recommended to make this kind modifications in your skin. The cloud platform is upgraded every 3 month on average. If the original VM file has been modified in the new release your skin might be broken after an upgrade.
-- Jean-Vincent Drean, XWiki.
Hi Jean-Vincent, thanks for your immediate response. I shall make my problem clearer. Not every vm file is in the /skins/colibri folder. When my wiki was set up by XWiki, they created a new skin and I can't find the vm files for that. However, this is just an example. Trust me it is useful to see (if not edit) the vm files, but I can't see how to find where exactly they lie. Also, is it true that other features, e.g. search, use vm files? What method should I use to locate these such files? I agree that leaving the vm files in place is a good idea for upgrades but it's useful to view them sometimes. Finally, while investigating this, I noticed that I can view vm files while not logged into the wiki. This exposes source code to the public viewers (should they know where to look). How can I stop this? Thanks again, Martin
On Wed, Apr 11, 2012 at 7:36 PM, Martin Evans <[email protected]> wrote:
Hi Jean-Vincent, thanks for your immediate response. I shall make my problem clearer. Not every vm file is in the /skins/colibri folder. When my wiki was set up by XWiki, they created a new skin and I can't find the vm files for that. However, this is just an example. Trust me it is useful to see (if not edit) the vm files, but I can't see how to find where exactly they lie.
The skin used in XWiki Cloud is colibri. The customizations are made in a Color Theme. Now that you talk about it, we don't override templates in colibri anymore, they're all in the templates folder, for example: http://localhost:8080/xwiki/templates/menuview.vm
Also, is it true that other features, e.g. search, use vm files? What method should I use to locate these such files? I agree that leaving the vm files in place is a good idea for upgrades but it's useful to view them sometimes.
A lot of features are developed directly in wiki pages, for instance the entry point to look at the search code is: https://localhost:8080/xwiki/bin/edit/Main/Search?editor=wiki
Finally, while investigating this, I noticed that I can view vm files while not logged into the wiki. This exposes source code to the public viewers (should they know where to look). How can I stop this?
You can't but, XWiki being open source, those templates will always been exposed in our source repository anyway. https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwik...
Thanks again, Martin _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Jean-Vincent Drean, XWiki.
Hi, I think one of the issues here comes from the fact that Martin's wiki is indeed hosted by XWiki SAS, but not on XWiki Cloud (it's on a dedicated VM). Guillaume On Thu, Apr 12, 2012 at 10:28, Jean-Vincent Drean <[email protected]> wrote:
On Wed, Apr 11, 2012 at 7:36 PM, Martin Evans <[email protected]> wrote:
Hi Jean-Vincent, thanks for your immediate response. I shall make my problem clearer. Not every vm file is in the /skins/colibri folder. When
my
wiki was set up by XWiki, they created a new skin and I can't find the vm files for that. However, this is just an example. Trust me it is useful to see (if not edit) the vm files, but I can't see how to find where exactly they lie.
The skin used in XWiki Cloud is colibri. The customizations are made in a Color Theme. Now that you talk about it, we don't override templates in colibri anymore, they're all in the templates folder, for example: http://localhost:8080/xwiki/templates/menuview.vm
Also, is it true that other features, e.g. search, use vm files? What method should I use to locate these such files? I agree that leaving the
vm
files in place is a good idea for upgrades but it's useful to view them sometimes.
A lot of features are developed directly in wiki pages, for instance the entry point to look at the search code is: https://localhost:8080/xwiki/bin/edit/Main/Search?editor=wiki
Finally, while investigating this, I noticed that I can view vm files while not logged into the wiki. This exposes source code to the public viewers (should they know where to look). How can I stop this?
You can't but, XWiki being open source, those templates will always been exposed in our source repository anyway.
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwik...
Thanks again, Martin _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Jean-Vincent Drean, XWiki. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Guillaume Lerouge -
Jean-Vincent Drean -
Martin Evans