Context Rules (EDD)

Engaged ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

I have the following scenario:

A BulletList element consists of multiple ListItem elements. A ListItem element can also contain a BulletList element (resulting in a 2nd-level and 3rd level BulletList respectively). We have a Format Change List item that we use for each bullet level.

When a BulletList appears as a child of a CellText element, we need to override the paragraph formatting and apply a different paragraph spacing, line height. For Level 1 ListItem elements, we also need to override the autonumber format.

 

Basically, we want the following rule:

In all context:

     If BulletList = Level 1, apply BulletLevel1 Format Change List

     If BulletList = Level 2, apply BulletLevel2 Format Change List

     If BulletList = Level 3, apply BulletLevel3 Format Change List

In addition to the above context rules:

    If context is * < CellText, override the paragraph and line spacing

    If conext is * < CellText and BulletList = Level 1, also change Autonumber format

 

I've written the Context Rules as follows:

1. If context is: BulletList

1.1 Count ancestors name: BulletList

If level is: 1

   Use format change list: BulletListLevel1

Else, if level is: 2

  Use format change list: BulletListLevel2

Else, if level is: 3

  Use format change list: BulletListLevel3

2. If context is: * < CellText

Basic Properties

 Paragraph Spacing

  Space below: 0pt

 Line spacing

  Height: 13pt

  Line space is fixed

3. If context is: * < CellText

3.1 Count ancestors name: BulletList

If level is: 1

 Numbering properties

  Autonumberformat: *\t

 

If the BulletList element appears within a CellText element, the two 2nd and 3rd context rules aren't being applied. How do I need to write my Context Rules to ensure they applied consequitively without duplication or having different Change List Formats?

Views

68

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jun 08, 2021 Jun 08, 2021
I've solved it by moving the Level Rule out of the Context Rule.

Likes

Translate

Translate
Engaged ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

LATEST

I've solved it by moving the Level Rule out of the Context Rule.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines