Creating tables with the textile formatting used by Redmine is fairly easy though it is not listed in the help documentation link. It has been useful to me to create tables specifically in the wiki informational pages. Typically within the Redmine wiki I like to keep things simple so below I will only describe a couple attributes related to tables within textile formatting.
Table Example: three rows, three columns
[BASH]
|one-one|one-two|one-three|
|two-one|two-two|two-three|
|three-one|three-two|three-three|
[/BASH]
Table Example: three rows, three columns with the top row as a header column
[BASH]
|_. one-one|_. one-two|_. one-three|
|two-one|two-two|two-three|
|three-one|three-two|three-three|
[/BASH]
Table Example: three rows, three columns with top rows cells content centered, the second rows cells align left, and the third rows cells align right
[BASH]
|=. one-one|=. one-two|=. one-three|
|<. two-one|<. two-two|<. two-three|
|>. three-one|>. three-two|>. three-three|
[/BASH]
Table Example: four rows, four columns with the top row spanning all four columns and the second row/first column spanning three rows.
[BASH]
|\4. one-one,two,three,four|
|/3. two,three,four-one|two-two|two-three|two-four|
|three-two|three-three|three-four|
|four-two|four-three|four-four|
[/BASH]
There are some other attributes that can be specified as well including adding colors to rows. The information above was obtained from this site which also includes other textile table formatting examples. It can take a little while to become comfortable with writing pages in textile format but once you are used to textile it will become very easy to format pages for your Redmine wiki pages.
|
|



Entries (RSS)
But how to make two columns and put HTML code in one of them and its rendering in second of them? I don’t know any way to put multi-line text with formatting in a table cell. If Redmine used normal HTML life would be easier ;/
[Reply]
alex Reply:
October 18th, 2009 at 4:59 PM
Hello SasQ,
Redmine uses this so the formatting can be similar across browsers. If normal HTML was allowed then it could throw the formatting of the page off, etc. The tables are really only for simple data and then you can always write outside of the table to further describe the table data.
Thanks.
alex
[Reply]
How to create bullets / lists / multi-level lists inside the table cell?
[Reply]
alex Reply:
November 2nd, 2009 at 12:02 PM
Hello Sasee,
If you can provide the HTML equivalent to what you are trying to do in textile then I can either provide an example of how to do it or let you know if it cannot be done.
Thanks.
alex
[Reply]
Sasee Reply:
November 2nd, 2009 at 12:30 PM
Aelx,
Thanks for the reply. Here is the code:
Lists in Textile Table Cell
Lists in Textile Table Cell
Table cell 1 Sub
tableSub tableSub
tableSub table Table cell 1a
table cell 1b Table cell
2Table cell 1 Table cell 2a table cell 2b
Table Cell 2a
I’m waiting for you reply….
Thanks in advance!
Sasee
[Reply]
—————————————————–
Lists in Textile Table Cell
Lists in Textile Table Cell
Table cell 1 Sub
tableSub tableSub
tableSub table Table cell 1a
table cell 1b Table cell
2Table cell 1 Table cell 2a table cell 2b
Table Cell 2a
———————————-
[Reply]
Alex,
Did you get it?
It looks like it’s stripping off all the HTML codes pasted….
Sasee
[Reply]
Alex,
Take a look at the sample table that I want to create in textile, from the link below:
http://usehtmlcodetocreatetextiletable.blogspot.com/2009/11/test-table-border1-cellpadding5.html#comment-form
[Reply]
Alex,
Here is the image that shows the HTML code:
http://picasaweb.google.com/saseecumar/HTMLTable#5399555033671146082
Thanks,
Sasee
[Reply]
alex Reply:
November 2nd, 2009 at 9:35 PM
Hello Sasee,
I don’t think it is possible to created ordered lists within Redmine’s implementation of Textile. See the following two links for a description of your issue…
Redmine – 2400
Redmine – 3072
Sorry I couldn’t help.
Thanks.
alex
[Reply]
Thanks Alex.
Could you tell me how to find out the version of RedCloth Textile installed.
We can create the tables with lists in Textile using HTML if RedCloth4 is installed.
Do you know this fact?
Sasee
[Reply]
alex Reply:
November 3rd, 2009 at 3:45 PM
Hello Sasee,
Look in Redmine’s root directory in the lib directory. My current version of Redmine has lib/redcloth3.rb. Inside that file the version shows 3.0.4 which explains why you can do this but Redmine currently cannot. I believe the lists in tables support was added in RedCloth 4.2.
Thanks.
alex
[Reply]
Alex,
You’re right.
RC4.2.2 supports HTML table in the wiki editor.
The sad part, when I upgrade RC4.2.2 with RC3 – it doesn’t get updated.. It generates a list of errors when I run the server after I remove the redcloth2 file from the lib folder or uninstall RedCloth4. from the root folder.
I don’t get to see the behavior RedCloth4 after installation. It still inherits the features/limitations of RedCloth3.
I guess, somewhere in the Config file – I need to tweak the class name of RedCloth 3 to RedCloth4.2.2 to get it working…..
How does it sound?
Thanks
SaSEE
[Reply]
alex Reply:
November 4th, 2009 at 10:57 PM
Hello Sasee,
I believe there are many integration issues regarding this. You would have to look on redmine.com. I would also suggest requesting that a redcloth upgrade be included in the roadmap for Redmine.
Hope that helps.
Thanks.
alex
[Reply]