Hi,
On Fri, Dec 11, 2009 at 12:55, Bubulina <nohinder(a)yahoo.com> wrote:
 Hello :)
 I wanna see the code for let's say HTMLMacro from xwiki 2.0, because i wanna
 see how you added a checkbox in the macro parameters. i know there are 2
 files in the "templates" files: macros.vm and macros.txt, but i donlt find
 what i want 
Actually HTMLMacro is a Java macro not a wiki macro, you can find them
in
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwik….
Note the "XWiki Java Macro (Syntax 2.0 only)" and "XWiki Wiki Macro
(Syntax 2.0 only)" types in
http://code.xwiki.org/xwiki/bin/view/Macros/ (for now all the default
2.0 macros are java macros). Also all the macros listed in macro.vm
are velocity macros and should not be used (as much as possible) in
xwiki/2.0 syntax since these as been designed specifically for
templates and xwiki/1.0 syntax (they produce lot's of html), we are
converting them to java/wiki 2.0 macros when we have time.
  And another question: can a page have more than one
macro added? i mean...i
 edit a page, add some macro classes . then i shoudl be able to use these
 macros in every page in the space, right? and be able to see the macros(in
 the macro list)..cause somethimes i do, and other times i don't, so i must
 be doing something stupid. :D 
One page is supposed to contain only one wiki macro and there is no
plan to support multi macros in a document.
  Thank you
 --
 View this message in context:
http://n2.nabble.com/how-can-i-see-the-code-of-xwiki-default-macros-tp41508…
 Sent from the XWiki- Users mailing list archive at 
Nabble.com.
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
 
--
Thomas Mortagne