Hi Filipe.
The *.vm files in /templates are velocity macros that are available site
wide.
Generally they are used to present the information in a different
format. For example, to show the code for a page ?xpage=code is added
to the end of the URL and then xwiki uses the code.vm template to
display the page.
Each template has its own use. Eg xml.vm to present the xml version of
the page.
That is what Velocity is good at, formatting for display.
The syntax is the same as the velocity code you use in the xwiki pages
but it is stored in the text files with the .vm suffix. I think that
the templates only become available after a restart as well.
You might be better off experimenting with creating a form on a xwiki
and then including it with #includeForm("XWiki.exampletemplate") before
you move it to a separate file.
Another issue might be that when you upgrade, forms and templates on
XWiki pages should survive the transition, whereas there is no guarantee
that modifications in the templates directory will.
Cheers,
Mark
On Wed, 2006-05-10 at 17:42 -0300, Filipe wrote:
The site is off line and I need this answers,
please!!!
How ca I use the *.vm files in /templates??
How can I create a templates?
Att,
Filipe Fumaux
plain text document attachment (message-footer.txt)
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws --
Mark Robinson