ok so I think what you're asking is how to use jquery or ext-js with xwiki. That's a good question and I don't know the answer. All I know is that the majority of JS toolkits have some mode that allows them to run with other competitor too. You need to google for that. Now back to your issue if you don't use any vm from templates then I don't think xwiki should load any JS files either since they're referenced from the vm files... Thanks -Vincent On Feb 10, 2008, at 8:27 PM, Sachin Mittal wrote:
Hi Vincent, Thanks for warning me about the potential pitfall. Well I am keeping all the jars as touching that part is dangerous.
I will tell you why I am asking this question on rendering part.
To build my new skin I am using jquery and ext-js as the javascript toolkits. When I include them along with other javascript files they somehow don't get loaded and I am not able to get my widgets working. Currently I am build new skin for just one space, but over the time the whole UI would be rendered using javascript from these two toolkits only. Thus other vm files which may be using some other javasscript code won't be needed and to have a cleaner code I would not like to keep these vm files.
Anyway I would always take care, keep proper backups before before tampering with the core xwiki structure.
-Sachin
vmassol wrote:
Hi Sachin,
You're free to do whatever you want of course but please don't ask for support later on because some xwiki skin you'll want to use doesn't work for you :) (it won't work but that'll be normal since it'll rely on files in the templates dir).
You're touching here at XWiki core structure and it's not never a good thing to change that unless you completely understand what it means. In the same way you can delete lots of jar files in the WEB-INF/lib dir but if you do you'll find one day that when you use such and such plugin it doesn't work.
Thanks -Vincent
On Feb 10, 2008, at 6:46 PM, Sachin Mittal wrote:
Hi, I have created a new skin and for all the user actions the vm files, css and javascript code is picked up from that skin only. Thus others are not required. And as per the quote below the files in template directory are picked up only if vm files are not found in skin directory, this won't be the case for us because the vm file should exist in the skin directory.
Thus for the custom deployment of xwiki I was streamlining the xwiki code we are using and deleting redundant code.
Also based on your comments below, second thing I can do is, keep all the vm code under template directory only and have the css, js, images and other static resources under the skin directoy.
I feel second approach would be better one.
Thanks Sachin
vmassol wrote:
The template files are used when the vm file required cannot be found in the skin. The role of templates is to have common vm files located in one place and not copied in all skins. Right now this is a bit of a mess but in the very near future we'll move the Albatross templates into the templates directory and remove all vm files in the albatross skin so that a skin will consist of only images, css and possibly some Javascript.
I'd be interested to know what you're working on.
Maybe we can work together to better support your use cases, etc.
thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Is-templates-directory-required-any-more--tp15397359p1... Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs