I am converting our Mif2go publishing process to FM2017. Mif2go has a configuration setting that allows you to use the "th" tag in order to identify the table header in the html. Is there a setting like this in FM?
Looking at the HTML source file, the header row class of "tr1" is also used for cellbody rows. I'm trying to put a background color on the header row. I appreciate any help that you can provide.
|<div width="100%" align="left">|
|<table border-spacing="0" dir="ltr" class="table0 ItemList" border-collapse="collapse">|
|<caption dir="ltr" class="FM_ItemListTblTitle">Navigation Buttons Item List</caption>|
|<p dir="ltr" class="FM_TBLHead">Item</p>|
|<p dir="ltr" class="FM_TBLHead">Description</p>|
|<p dir="ltr" class="FM_CellBodyBold">1</p>|
|<p dir="ltr" class="FM_CellBody">Go to the first page.</p>|
|<p dir="ltr" class="FM_CellBodyBold">2</p>|
|<p dir="ltr" class="FM_CellBody">Go to the previous page.</p>|
Table header in the HTML: why would you need to identify that?
I want to set separate formatting for the header…add a background that does not impact the cellbody cells.
Wouldn't that be controlled by the css applied to that FM_TBLHead style?
Thanks for getting back Jeff. I was looking at the wrong solution. As soon as I changed the Caption to use Source File, I got the desired result.
Thank you again for getting back! amy
In FM, HTML publishing automatically creates TH tag if table has heading. If the table does not have heading, you can always modify your table to add heading row. If you just want special appearance for first row you can try some of the table templates like (TopRowAlternatingRows) in style mapping tab of publish settings it will apply special class like 't1st". You can modify t1st CSS selector in CSS editor and update the CSS as shown in picture.
My problem is that even though I have designed the table with the heading, it is not assigning the TH tag. Therefore, I am getting inconsistent formatting for the table in the HTML because it looks like FM varies in its assignment of the TD classes. So if I define class td2 with the heading format in the CSS, it might be applied across multiple rows in the html.
I think something is messed up in your FM source content - can you give a screenshot of how it looks in FM with the insertion point in the table header & the bottom left corner of the FM screen visible?
re: My problem is that even though I have designed the table with the heading, it is not assigning the TH tag.
I can't speak to the HTML workflow, but the usual suspect for what you describe is that the Table doesn't actually have header row(s). It is using body rows with header Paragraph Formats applied.
The usual fix is to click in the apparent header, and Table > Add Rows or Columns
(*) Add [n] Row(s) [To heading]
then migrate the former apparent heading content up there.
Regarding TH tag issue, It is working fine at my end. Are you using "Use Source style" in table style mapping ?
I wanted to get back to let you know that you nailed the solution for my situation. First, I was able to see the other table templates after I reset my project. After applying the template, I had the tags that I needed.
Thank you to all for your help! amy