Native PDF Custom Note Types? | Community
Skip to main content
Level 4
April 15, 2024
Solved

Native PDF Custom Note Types?

  • April 15, 2024
  • 1 reply
  • 1505 views

Hi, all!

 

I have a question regarding custom note types in Native PDF. 

 

In our current DITA OT output, we have custom note types set up like this:

 

The type=other tells the output to use whatever text the author enters in the othertype field. In this case, "Notes" display instead of "Note."

 

How can I get my AEM Native PDF output to utilize this in the same way?

 

Thank you!

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,

 

Please try adding the following CSS to your templates's CSS file:

 

div[data-attr-othertype]>span.prefix-content { display:none; } div[data-attr-othertype]:before{ content: attr(data-attr-othertype)": "; }

 

In this case it will pick the value of othertype attribute and put it before the prefix-content (e.g. Note) in your example above. It should work for different values of type like danger, caution etc.

Please give it a try and let us know how it goes.

 

Thanks and Regards,
Surbhi Maheshwari

 

1 reply

Adobe Employee
April 17, 2024

Hi,

 

Hope you are doing well.

Can you please share the generated PDF's screenshot for the Content properties screenshot you shared in your query?

That will help us in understanding the requirement clearly.

 

Thanks and Regards,
Surbhi Maheshwari

Level 4
April 24, 2024

Please let me know if you need additional clarification and I'd be happy to provide it!

 

The bottom line is that we're looking for a way to completely customize the output of a note (not just the standard caution, warning, etc. options).

 

Thanks again!

Josh

Surbhi_MaheshwariAdobe EmployeeAccepted solution
Adobe Employee
April 25, 2024

Hi,

 

Please try adding the following CSS to your templates's CSS file:

 

div[data-attr-othertype]>span.prefix-content { display:none; } div[data-attr-othertype]:before{ content: attr(data-attr-othertype)": "; }

 

In this case it will pick the value of othertype attribute and put it before the prefix-content (e.g. Note) in your example above. It should work for different values of type like danger, caution etc.

Please give it a try and let us know how it goes.

 

Thanks and Regards,
Surbhi Maheshwari