Skip to main content
Michael_Müller-Hillebrand
Legend
July 13, 2010
Question

EDD: How to track table column number with straddled cells

  • July 13, 2010
  • 1 reply
  • 604 views

Hello,

I have a table layout where I want a different paragraph format in the first column depending on a table attribute value. So I created a Text Format Rule for the cells like this:

If context is: {first} < * < table [class="definition"]

  Use paragraph format: T_FirstColumn

Else

  Use paragraph format: T_Column

This works fine until the user straddles some cells in the first column, like this:

In the first column the three cells are straddled, so the cells in row 2 and 3 "think" they are first and use the bold paragraph format.

Apart from setting additional attributes (through API programming), do you have a solution?

Thanks,

- Michael

This topic has been closed for replies.

1 reply

Legend
July 13, 2010

Hi Michael,

This is less-than-optimal, but you could put a zero-width column in between to catch that rule for straddled rows. Other than that, my guess is that you are stuck with FM's interpretation of the architecture. Technically speaking, FM's interpretation is correct, at least as far as the structural relationship is concerned. Once you straddle those cells, the element for the second cell (on the straddled rows) appears as the first element in the row branch; that is, the cell element that used to represent the first cell disappears with the straddle.

Russ

Michael_Müller-Hillebrand
Legend
July 13, 2010

Russ,

Thanks a lot for the confirmation. I was hoping for some hidden secrets...

I the EDD were for publishing purposes only, I would consider that extra column, but given that the full solution already uses scripts and a structure client, I decided to add a feature that would enter the real column number into a cell attribute. This allows me to use that column number in my text formatting rule.

- Michael