cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

Toolbar button to remove outputclass entry automatically

bfriesen
18-Opal

Toolbar button to remove outputclass entry automatically

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.

 

bfriesen_0-1759944486471.png

bfriesen_1-1759944525810.png

 

Thanks

 

Bryon

 

 

ACCEPTED SOLUTION

Accepted Solutions

You could try 

oid_delete_attr(oid_caret(),"outputclass")

View solution in original post

5 REPLIES 5

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

bfriesen_0-1760451057106.png

I changed it to your suggestion and it works as expected. 

bfriesen_1-1760451117651.png

 

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")

 

bfriesen_0-1764694575485.png

 

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

Announcements

Top Tags