Expand my Community achievements bar.

SOLVED

AEM Guides Native PDF Subtitle Question

Avatar

Level 4

In Native PDF, what is the best way to publish a subtitle on a first page?

 

In our current OT setup, we use "outputclass" from the <Title> element to populate the subtitle content. I have attached the DITA for an example.

 

I know I can potentially set up a field in the asset's Properties, but is there any way I can leverage what we currently have in our DITA? Since the tag is outside of the <topicmeta>, I haven't had success with the general directions.

 

(I'm still on Guides version 4.2.229, in case that matters!)

 

Thanks for any help!

Josh

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 6

To render the subtitle in PDF, you can use metadata fields. For this, you need an element inside topicmeta or bookmeta containing the subtitle value.

Below is a sample where I have added the subtitle inside topicmeta.

AswiniLakshminarayanan_0-1697621254695.png

Added the metadata field to my first page with xpath value:  //data/title

AswiniLakshminarayanan_4-1697622398826.png

 

and the PDF should render the subtitle something like below:

AswiniLakshminarayanan_2-1697621374314.png

 

 

 

View solution in original post

4 Replies

Avatar

Employee

You can achieve this through Fields metadata, which is like a variable and you can insert anywhere in the page layout. You can find the details on this page. We did a workshop in one of the expert sessions. Let us know if you still face any issues. It is supported in your version.

 

 

Avatar

Level 4

Thanks for the quick response again, ViveKK! The presentation you referenced is very helpful, however I don't have all the options that the presenter did.

I'm able to pull the title and copyright logo from the DITA successfully, but I'm still having trouble with the subtitle. I've attached the code I'm trying to use for the front page template.

 

Do I need to change the data-subtype? (The illustration for where this is in the DITA is in the previous attachment.) I've seen some that include an "@xxxx" on the end. Where would I need to use those?

 

Thanks again for your help!

Josh

Avatar

Correct answer by
Level 6

To render the subtitle in PDF, you can use metadata fields. For this, you need an element inside topicmeta or bookmeta containing the subtitle value.

Below is a sample where I have added the subtitle inside topicmeta.

AswiniLakshminarayanan_0-1697621254695.png

Added the metadata field to my first page with xpath value:  //data/title

AswiniLakshminarayanan_4-1697622398826.png

 

and the PDF should render the subtitle something like below:

AswiniLakshminarayanan_2-1697621374314.png