Split a table into 2 separtate tables

This forum is for all Flare issues not related to any of the other categories.
Post Reply
WebHelpppp
Propeller Head
Posts: 78
Joined: Thu Jul 17, 2014 8:08 am

Split a table into 2 separtate tables

Post by WebHelpppp »

I have a large 30 page table that I am going to break down into categories/separate table. Other than getting into the code is there a way split the table using MadCap?

Worst case scenario I can export to Word, split the table into multiple tables and reimport into MadCap.
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: Split a table into 2 separtate tables

Post by kwag_myers »

WebHelpppp wrote:Worst case scenario I can export to Word, split the table into multiple tables and reimport into MadCap.
If the table is already organized into the sections you want to break out, just slip some code in (I know you said you don't want to do this, but this might be fairly easy). Copy the first part of the table up to (but not including) the <tbody> tag:

Code: Select all

<table style="mc-table-style: url('Resources/TableStyles/...>
            <col class="TableStyle-Test-Column-Column1" />
            <col class="TableStyle-Test-Column-Column1" />
            <col class="TableStyle-Test-Column-Column1" />
Then fine the place where you want to break the table apart and paste it in after the </tr> tag of the last row before the break. You can do this in the XML Editor view and highlight a line of text as a reference. You'll need to add a few more tags, but then you can paste the code snippet as many times as you want:

Code: Select all

</tbody></table> <!--Add these tags-->

<table style="mc-table-style: url('Resources/TableStyles/...>
            <col class="TableStyle-Test-Column-Column1" />
            <col class="TableStyle-Test-Column-Column1" />
            <col class="TableStyle-Test-Column-Column1" />

<tbody> <!--Add this tag-->
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
Post Reply