Expand my Community achievements bar.

SOLVED

How can I display <topicmeta> from a map to Native PDF Output?

Avatar

Level 4

Hi there,

 

I'm wondering if there is a way to get a <topicmeta> tag to show up on output through Native PDF. Currently it looks like the output template is ignoring it. How can I get it to show?

 

Thanks in advance!

Josh

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Josh,

 

Do you want to show a value from topicmeta e.g. author in your native PDF output?

If yes, there is an option to insert that in page layout of PDF template. From top toolbar, you can insert Fields > metadata > select the one you want to insert (select Map content from drop down in your case).

In generated PDF output you will see the value of let's say author element from topicmeta of ditamap.

PFA screenshot below:

Screenshot 2024-06-27 at 11.58.27 PM.png

 

Thanks and Regards,
Surbhi Maheshwari

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi Josh,

 

Do you want to show a value from topicmeta e.g. author in your native PDF output?

If yes, there is an option to insert that in page layout of PDF template. From top toolbar, you can insert Fields > metadata > select the one you want to insert (select Map content from drop down in your case).

In generated PDF output you will see the value of let's say author element from topicmeta of ditamap.

PFA screenshot below:

Screenshot 2024-06-27 at 11.58.27 PM.png

 

Thanks and Regards,
Surbhi Maheshwari

Avatar

Level 4

Thanks so much for your quick reply, Surbhi!

I should have clarified - my apologies!

What I mean by <topicmeta> in maps is this:

joshm19816095_0-1719514727283.png

I know this probably isn't the best use of DITA, but unfortunately this scenario is present in our legacy content.

Is there any easy way to get this to show, or is it necessary to make these into topics?

Thanks again!

Josh

Avatar

Level 4

Turns out this is a bigger issue for our legacy content than I'd originally thought!

 

Because the topicmeta doesn't make it to output, any empty chapter tag with a topicmeta directly in the bookmap (as illustrated in my example) causes Native PDF to skip that file, and number each H1 in the chapter as its own chapter.

This can obviously be fixed by changing out the blank chapter tag/topicmeta with an actual topic. However, is there any way we can get the topicmeta to display as it is layed out in my example? This would greatly help us with fixing legacy material.

Please let me know!

 

Thanks again!!

Josh

Avatar

Level 1

To close this issue out, I believe we were using this tag in a very customized way in our previous system, meaning we need to make a few changes to make the tag work properly.

Thanks for all of the help!

Josh