cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Translate the entire conversation x

How do you add custom document types in the (dita) resource manager?

DL_10914713
12-Amethyst

How do you add custom document types in the (dita) resource manager?

Hi,

What would I need to do to be able to update the resource manager so that when I need to create a new topic and insert it into the map, my custom topic document type is available. This option should be useable for everyone.

 

I know I would normally use the point the aptcustom environment variable to a specific location. But my custom dita doc types are stored outside of the conventional folder. Google is not turning up any results for me.

 

For reference, I already have a custom_init.acl file in my custom folder. The path to this folder is already set in my aptcustom environment variable.

 

So I think ideally, I would need to change something in this acl, but not sure what. All I know after this point is that I need to be able to provide a link somehow to where my custom dtd's are.

5 REPLIES 5
Alexia
14-Alexandrite
(To:DL_10914713)

Good morning,

It is a bit tricky without knowing what you already have in your custom_init.acl - but it may be worthwhile checking the Editor Help Center topic get_custom_dir.

If this does not help, I would recommend raising a case with PTC Technical Support as we will then be able to review your current files and .acl.

I hope this is of help

Best wishes

Alexia

Alexia
DL_10914713
12-Amethyst
(To:Alexia)

Hi Alexia, sorry for the tardiness. 

so in my custom folder, which aptcustom points to. It is on an external drive shared by my colleagues, so I can't rely on a local solution.

custom_init.acl

 

############################################################################
#
#   Add within this function to customize the menu on startup
#
# 	
function load_menu(){

	menu_add -before .File.#15 "Publish PDF and Release Print License" -cmd {
		compose_pdf();
		license_release("PrintPublishing");
	}; 
	
	menu_add -before .View.#7 "view_code" -cmd {
		edit -current -untagged;
	};
	
	menu_add -before .View.#8 "view_normal" -cmd {
		edit -current;
	};
	
}

add_hook("menuloadhook", "load_menu");
#
###

##############################################################################
##############################################################################
#   Adding custom options for when you create a new file
#   remove an item by using ^ in front of the field. ex. ^techinfo;
#
set newlist=" \
	techinfo; \
	techinfo-rdedit; \
	techinfomap; \
	dita\\bookmap; \
	dita\\map; \
	dita\\ditabase; \
	dita\\keybase; \
	dita\\ditaval; \
	^dita\\learningBookmap; \
	^dita\\learningMap; \
	^dita\\learningGroupMap; \
	^dita\\learningObjectMap; \
	^dita\\learningDitabase; \
	dita\\DMPmap; \
	axdocbook; \
	asdocbook; \
	html; \
	xhtml; \
	html5; \
	xhtml5; \
	^freeform;^ASCII|Text; \
	T:\\DTD\\ApplicationNote\\ApplicationNote.dtd; \
	T:\\DTD\\DataSheet\\DataSheet.dtd; \
	T:\\DTD\\Errata\\Errata.dtd; \
	T:\\DTD\\ModuleSpecification\\ModuleSpecification.dtd; \
	T:\\DTD\\NewTechnicalReferenceManual\\NewTechnicalReferenceManual.dtd; \
	T:\\DTD\\UserGuide\\UserGuide.dtd; \
	T:\\DTD\\ReleaseNote_2\\ReleaseNote.dtd; \
	T:\\DTD\\FreeDocument\\FreeDocument.dtd; \
	"
#
###

 

So as you will notice at the bottom, I have links to some custom dtd (docbook derivative) files. It is not included here, but I also created some dtd's based off of dita. There are a few elements and filters and such that I added to these dtd's. So I believe with this, it is possible to see the new doctype in the new document window, and this is fine. 

But now I want to work with dita and dita maps. I largely prefer if the team uses the resource manager to create and insert new topics. 
I have these new dita dtds in a separate folder, outside of the custom/doctypes/ folder.  
DL_10914713_0-1737626108627.png

However the documents listed only provide me with the out of the box dita documents, and I need to ensure they're shown the new ones instead. But I am struggling to find where I can update this list. For reference, I found the Resource Manager tab customization information on the website, but not the list within (specifically the how-to, or at least even a sample). 


We use a zipped application that has our template files in it  So when users log into our cms the system checks to make sure each user has the latest version downloaded. We can access our templates from the file, new drop down. I did not set it up, but by the looks of things the techinfomap and techinfo dcf files were modified to show the custom files. I hope this also helps.

 

techinfomap

bfriesen_0-1737640137871.png

techinfo

bfriesen_1-1737640181170.png

 

Bryon

Check this link about migrating to version and not being able to see customized templates https://www.ptc.com/en/support/article/CS398383?source=search

 

 

 

Bryon

 

Hello @DL_10914713

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements

Top Tags