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.

Professional Wikis (Paperback)

By (author): Mark S. Choate


List Price: $39.99 USD
New From: $6.52 USD In Stock
Used from: $0.01 USD In Stock

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , ,
14 Responses to “Redmine: Create Tables Using Textile Formatting”
  1. SasQ says:

    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:

    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]

  2. Sasee says:

    How to create bullets / lists / multi-level lists inside the table cell?

    [Reply]

    alex Reply:

    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:

    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]

  3. Sasee says:

    —————————————————–

    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]

  4. Sasee says:

    Alex,

    Did you get it?

    It looks like it’s stripping off all the HTML codes pasted….

    Sasee

    [Reply]

  5. Sasee says:

    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]

  6. Sasee says:

    Alex,

    Here is the image that shows the HTML code:

    http://picasaweb.google.com/saseecumar/HTMLTable#5399555033671146082

    Thanks,

    Sasee

    [Reply]

    alex Reply:

    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]

  7. Sasee says:

    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:

    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]

  8. Sasee says:

    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:

    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]

  9.  
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*