Still, making the table macro more flexible would be very valuable imho. In particular I'd like a way to set the widths of the columns... or can this be done already? On 01/06/06, Adrian Hall <[email protected]> wrote:
Actually, you gave me just the pointer I need. If I add a style block within the page (import a style sheet) which defines CSS style wiki-table, table-odd and table-even, then I get the required effect.
Thanks for the pointer.
-Adrian
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Thursday, June 01, 2006 6:24 AM To: [email protected] Subject: Re: [xwiki-users] New {table} types?
Hi,
TableMacro and TableBuilder is the right track However I don't think creating {table style="foo"} is right. I think you should go for
{table:class=mystyle}
which should add "mystyle" in the class added to the html <table tag in the Table.java (currently provided by radeox) http://fisheye.codehaus.org/viewrep/radeox/main/trunk/src/java/org/radeox/ macro/table/Table.java?r=9
If your modifications are different, I'd suggest to add them as improvements to the {table:} radeox tag instead of a rewrite of this macro. This way we can reintegrate them in the XWiki source
Ludovic
Adrian Hall a écrit :
Hi,
Relevant Stats:
Fedora Core 4 / JBoss 4.0.4 / XWiki 0.9.840 / MySQL 5.0
I want to be able to introduce a new tag – like {table}, but with a different style. {table style="foo"} as an extension would be good.
I found things like TableMacro, TableBuilder, as starting points but could not find Table.java (which they use).
So, two questions
1) Am I on the right track with the TableBuilder and Table classes?
2) Is there docs on how to include a new macro (via a plugin, perhaps?)
-Adrian
*Adrian Hall*
Sr. Product Line Manager
Technology Partnerships
[email protected] <mailto:[email protected]>
Ph: (408) 667-4977
MSN: [email protected]
Skype: adrianhall
-- You receive this message as a subscriber of the xwiki-
[email protected] mailing list.
To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws