I am looking at creating a toolbar button to remove the outputclass entry automatically. What should the command look like? I have tried mt -local outputclass='' but it show up like this if delete the quotes then it says unrecognized command.
Thanks
Bryon
Solved! Go to Solution.
You could try
oid_delete_attr(oid_caret(),"outputclass")
Thanks Clay I was trying to copy what was done for us previously. So I thought I could leave it blank get it to remove whatever the outputclass was set to
They had used the mt (modify tag) option. https://support.ptc.com/help/arbortext/r8.3.1.0/en/index.html#page/Program/acl_ref/help9092.html
I changed it to your suggestion and it works as expected.
Bryon
Great, I'm glad it worked for you!
Clay, if I wanted to change this code to remove all the profiling, I changed it to the text below, but it did not work. Should it work like that? or is there a different method?
oid_delete_attr(oid_caret(),"outputclass"); oid_delete_attr(oid_caret(),"Co-brand"); oid_delete_attr(oid_caret(),"Audience");oid_delete_attr(oid_caret(),"Product"); oid_delete_attr(oid_caret(),"Other")
Bryon
Hi Bryon--
Make sure the attribute names match the attributes exactly, including case. If this is TIA, the attributes are "audience" and "product" (lowercase). I'm not sure about "co-brand" and "other" attributes, those are not standard for TIA or DITA. Maybe you have a specialization? In any event, when I try it with lowercase attribute names to match the doctype, it works for me.
--Clay
