AEM Native PDF: List of Tables Showing Extra Tables at Beginning | Community
Skip to main content
Level 4
June 4, 2024
Solved

AEM Native PDF: List of Tables Showing Extra Tables at Beginning

  • June 4, 2024
  • 1 reply
  • 1409 views

Hello!

 

I'm working on a bookmap template in Native PDF. Here is the page layout order I'm using:

When I publish, this is what the List of Tables shows:

I'm assuming these tables in the red rectangle are pulling from frontmatter content. How can I make the list of tables start with page one, as illustrated above?

 

Thanks!

Josh

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Surbhi_Maheshwari

Hi Josh,

 

If you know how may entries you want to remove from the beginning in list of tables then you can hide them like below: Here I am hiding first two entries:

.lot-body a:nth-child(-n+2){ display: none; }

The downside is that whenever a new table is added to front matter, you will need to update this number in CSS.

Let me know if it works for you.

 

Thanks and Regards,
Surbhi Maheshwari

1 reply

Surbhi_MaheshwariAdobe EmployeeAccepted solution
Adobe Employee
June 5, 2024

Hi Josh,

 

If you know how may entries you want to remove from the beginning in list of tables then you can hide them like below: Here I am hiding first two entries:

.lot-body a:nth-child(-n+2){ display: none; }

The downside is that whenever a new table is added to front matter, you will need to update this number in CSS.

Let me know if it works for you.

 

Thanks and Regards,
Surbhi Maheshwari

Level 4
June 13, 2024

I just had a thought - would it be possible to hide any table that don't have a table title tag? I noticed all the extra tables that are coming over don't have titles like every other table in the bookmap. Would this be possible?

 

Thanks again!

Josh

Adobe Employee
June 18, 2024

Hi Josh,

Right now it is not possible, the logic is hardcoded. But your point is valid, we will take it up as an enhancement to not show the entry if the table doesn't have caption.

 

Thanks,

Vivek