Skip to main content
mattl84896954
Known Participant
November 27, 2018
Answered

Removing Context and Result labels in DITA output

  • November 27, 2018
  • 3 replies
  • 2780 views

We are using FrameMaker 2019 and are looking to publish our next document. While the publishing is faster and somewhat easier, I'm getting unwanted Dita labels in my output, mainly the Context and Result labels that are associated with Dita tasks. I understand I may need to remove these from my FM template files - is this correct? Can I turn off just Context or Result, or both? And how would I go about removing these labels? Many thanks!

This topic has been closed for replies.
Correct answer DLindsay

OK, after you've edited the task.eddmod.fm file, open task.edd.fm then click Edit > Update References to pull in the changes. Save task.edd. Then open task.template.fm and click File > Import > EDD and choose task.edd. Save the template.
(Of course backup the files before you change them in case something breaks. Also, you can either run FM as an administrator to be able to save the files directly or save them somewhere else and copy them back into the normal location.)

Now if you click File > New > DITA > task, you'll see that the context label is gone. These changes affect how dita files are displayed within FrameMaker. However they don't affect how anything is published - the next steps fixed the output for me:

Open composite.edd.fm (it's here: C:\Program Files\Adobe\Adobe FrameMaker 2019\Structure\xml\DITA\app\DITA-Composite-FM) find the context and result elements, and delete the prefix rules in the same way that you did in task.eddmod.fm. Save the file.

Open ChapterOutputTpl.fm and ditabase1.3.template.fm (or just ditabase.template.fm if you're using an earlier version of DITA). Use File > Import > EDD to import the composite.edd.fm into these two files. save them into their original locations. Now your published output should be good.

If you only care about the published output and not how things display when you're working with the base DITA files then you only need to change the composite, chapterOutput, and ditabase1.3, but I find it helpful to have things look consistent all the way through the editing process, so I make my changes in both places.

3 replies

mattl84896954
Known Participant
March 11, 2019

I am strongly hoping someone may see this tread.

I finally got around to trying the edits to the various EDD files, but with no luck.

Firstly, I've edited the task.eddmod.fm and updated task.edd.fm. I did this both in the DITA 1.2 and DITA 1.3 folders, but it it didn't take. When I restart FM and open a new task, when I insert the Context Element, I still see the label.

Now as to the composite.edd.fm file, I cannot even see the the Prefix Rules that I need to edit - at least not for the Context element.

Perhaps my 2019 FM root files are not the ones being referenced by my version of FM.

Any suggestions by anyone would be most helpful!

DLindsay
Inspiring
March 11, 2019

Did you import the updated EDD into the templates?

For task.edd, you want these changes to apply to the task.template.fm file. So:

Open task.template.fm and task.edd.fm.  Use File > Import > EDD to import the task.edd.fm into the template file. Save the template file into its original location. Now when you open a task you should see the effect of the changes you made.

mattl84896954
Known Participant
July 2, 2019

I am wondering if anyone else still has this issue. I have tried repeatedly the great instruction from Kat, but no luck.

The latest is when I try to update reference task.edd.fm with the task.eddmod.fm file, I get a text inset error message.

I would like to hear from someone at Adobe who could walk me through this. I have been beating my head for months trying to fix this with no resolution.

DLindsay
Inspiring
November 29, 2018

I get round that by choosing save as, saving the file somewhere else, then copying and pasting the file back into the original location.

Alternatively you can right click on FrameMaker in the start menu and choose More > Run as administrator and then you can probably save the files directly.

It's no trouble - I've been figuring this out quite recently and ask my share of questions too.

DLindsay
Inspiring
November 28, 2018

The labels are either defined in the numbering part of the paragraph format which is controlled by the template file, or are defined directly within the EDD.

Context and result are prefix added by task.eddmod.fm. To get rid of them you need to delete this rule under the context element:

Prefix rules

1. In all contexts.

Prefix: Context:

Text range.

Use character format: step.callouts

And under the results element delete:

Prefix rules

1. In all contexts.

Prefix: Result:

Text range.

Use character format: step.callouts

If I remember rightly, once you've done this, you need to refresh the task.edd.fm so it pulls in the updated task.eddmod.fm info, then apply the new task.edd to your task.template.fm file, and then you'll probably want to make the same changes to your output edd and template (in my setup that's ChapterOutputTpl.fm and composite.edd.fm).

mattl84896954
Known Participant
November 28, 2018

This is very helpful, thank you. This is the first I've heard of this task.eddmod.fm. Where do I find this file?

DLindsay
Inspiring
November 28, 2018

Mine is here:

C:\Program Files\Adobe\Adobe FrameMaker 2019\Structure\xml\DITA_1.3\app\technicalContent\edd\task.eddmod.fm

The path is similar for FM 2017 but under program files (x86).