Skip to main content
Inspiring
July 28, 2011
Question

Special formatting for the last element of a row

  • July 28, 2011
  • 1 reply
  • 585 views

Hi,

my EDD giving me a really hard time. I don't know how to solve this. I have a bullet list with subbullets like this.

  • A
    • a
    • b
    • c
  • B
    • a
    • b
    • c

Now I want, that de "c" has an other formatting as the "a" and "b". Does someone know if this is possible?

Thanks.

This topic has been closed for replies.

1 reply

Inspiring
July 29, 2011

Assuming your lists are named "ul", try a context rule like:

Text format rules

   If context is: {last} < ul < ul
     ...


To learn more, look up "Sibling indicators" in the Structure Application Developer Guide.

Johannes

Inspiring
August 2, 2011

Does the "c" item ever consist of multiple paragraphs (such as a third level of list)? As Johannes indicated, you can test the position of the item. Alternatively, if the formatting change is associated with the end of the list (the last paragraph within the last item rather than with the last item itself, you can use a last paragraph rule. For example, if you want extra space below the end of the list you can set the space below in a list paragraph rule for the list. The change will apply regardless of how many paragraphs comprise the last item.

    --Lynne

Dokuteam1Author
Inspiring
August 17, 2011

Hi Lynn, hi Johannes,

thanks for the answers. I tried it like Johannes said and it works fine.

Thanks a lot.

Greetings.