Applying conditions to table columns

Last Updated : May 19, 2021 |
Important:

Conditionalizing table elements adds complexity to the table. Depending on the size and complexity of your publication, you might encounter a publishing issue where the PDF you produce will not open. If you have this issue, see Error opening PDF: “There was an error opening this document. The file is damaged and could not be repaired.

Procedure

  1. Check out the topic in Oxygen XML Author.
  2. In the first table row, place the cursor in the entry element (entry, stentry, partentry) that corresponds to the column you want to apply the condition to.

    For example, to apply a condition to the second column in the table, put your cursor in the second entry element in the row.

  3. In Oxygen XML Author, click SDL Tridion Docs > Conditional text > Set condition.

    The page displays the Condition Builder dialog box.

  4. Repeat steps 3 through 6 for every row in the table.
    Tip:

    Once you apply the condition to the first entry element, you can put your cursor in the second entry element and press Ctrl+Y to repeat the action.

    It’s very important that you apply the condition to the same entry in every row or else the entire column will not be conditionalized.

  5. Check in the topic.
  6. In the Content tab of Publication Manager, preview the topic in the right pane to validate that the element where you added the condition shows with either red or green highlighting.

Next Steps

  • In the Conditions tab of the publication, select the appropriate condition.

  • Publish the output and verify if the conditionalized text is visible or hidden based on what you set in the Conditions tab.