Problems of Defining Custom Actions for New Document Type
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 19
- Joined: Fri Dec 10, 2010 2:11 am
Problems of Defining Custom Actions for New Document Type
Hi all, I met a frustrating problem when migrating a customized framework folder from Editor to Author.
Firstly, on my laptop, I am using Oxygen Editor, under it, I made a new framework folder called "article", I've declared everything like schema, article.framework, css, catalogs, and I've made a jar file for it too, and append a new icon to the Author Custom Actions, so whenever I had a "article" type document open, after switching to author mode, the icon that I've newly declared showed up perfectly and worked perfectly, too.
Now, I want to push out this article framework that I've created to my desktop PC, and I have Oxygen Author installed on this desktop PC. Here is my process: I've basically copied the whole "article" folder from Oxygen Editor on my laptop to the "frameworks" folder of the Oxygen Author on my desktop. After that, I opened up my Author, and went to "Document Type Association" and reconfigured everything that I did for my Editor. After restarting the Author, and opened up an "article" XML file, it can switch to author mode( which means the dtd is correctly loaded). However, the icon that I've declared NEVER showed up! I've been playing around with Author setting for a while but still no breakthrough.I thought it was a problem with the framework file, thus I copied the framework from Editor and replaced the one in Author, still didn't help.
I would be really grateful if anyone could help me here, if needed, I can provide more details of how I configured the Document Type Association. Thanks in advance!
Firstly, on my laptop, I am using Oxygen Editor, under it, I made a new framework folder called "article", I've declared everything like schema, article.framework, css, catalogs, and I've made a jar file for it too, and append a new icon to the Author Custom Actions, so whenever I had a "article" type document open, after switching to author mode, the icon that I've newly declared showed up perfectly and worked perfectly, too.
Now, I want to push out this article framework that I've created to my desktop PC, and I have Oxygen Author installed on this desktop PC. Here is my process: I've basically copied the whole "article" folder from Oxygen Editor on my laptop to the "frameworks" folder of the Oxygen Author on my desktop. After that, I opened up my Author, and went to "Document Type Association" and reconfigured everything that I did for my Editor. After restarting the Author, and opened up an "article" XML file, it can switch to author mode( which means the dtd is correctly loaded). However, the icon that I've declared NEVER showed up! I've been playing around with Author setting for a while but still no breakthrough.I thought it was a problem with the framework file, thus I copied the framework from Editor and replaced the one in Author, still didn't help.
I would be really grateful if anyone could help me here, if needed, I can provide more details of how I configured the Document Type Association. Thanks in advance!
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Problems of Defining Custom Actions for New Document Type
Hi,
Basically what you did was right. You copy the entire custom framework directory to the other Oxygen (or Author) installation in the frameworks directory.
What you have to make sure when creating your framework is to use non-absolute paths like ${frameworks}/article/path/to/image.png when specifying the icon path for instance.
If you specify references using absolute paths of course a different Oxygen installation will have different installation paths which will mean part of the created framework will not work properly.
You can also contact us on the support email address and give us more details if you can.
Regards,
Radu
Basically what you did was right. You copy the entire custom framework directory to the other Oxygen (or Author) installation in the frameworks directory.
What did you reconfigure? It should have worked right away. The most that you should have done would have been to disable the Docbook frameworks in case they conflicted with yours (had common association rules).After that, I opened up my Author, and went to "Document Type Association" and reconfigured everything that I did for my Editor.
What you have to make sure when creating your framework is to use non-absolute paths like ${frameworks}/article/path/to/image.png when specifying the icon path for instance.
If you specify references using absolute paths of course a different Oxygen installation will have different installation paths which will mean part of the created framework will not work properly.
You can also contact us on the support email address and give us more details if you can.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service