Create custom framework extensions from the IXIASOFT template
If you need to create your own custom framework extension, you can use the template that IXIASOFT provides on the Downloads site
This procedure provides steps for the following:
- Downloading the templage
- Customizing it for your company
- Performing a basic test with a simple CSS change
- Create a folder on your local disk for working with your framework.
For example, create a folder called Frameworks.
- Get the framework extension template:
- Go to the 6.4 area of the IXIASOFT Downloads site:
- Click the CCMS_Web folder.
- Enter the user name and password given to you by IXIASOFT Sales.
- Click the latest version.
- Download the FrameworkExtensionTemplate-[version].zip.
- Put the zip file in the folder you created and unzip it.
The template folder is named dita-acme.
- Rename the folder to dita-company, where company is the name of your company.
Note: The rest of this procedure continues to refer to dita-company. Use the name you gave to the folder instead.
- Open the dita-company folder.
The folder contains three files and two folders. Each will be edited in this procedure.
- Rename the files:
- Rename dita-acme.framework to dita-company framework.
- Rename dita-advanced-acme.framework to dita-advanced-company framework.
- Rename ditamap-acme.framework to ditamap-company framework.
- Edit the files to rename the title of the extension name.
- In dita-company framework, rename the
<String>DITA Map-acme</String>
to<String>DITA Map-Company</String>
.For example:<?xml version="1.0" encoding="UTF-8"?> <serialized version="21.0" xml:space="preserve"> <serializableOrderedMap> <entry> <String>document.types</String> <documentTypeDescriptor-array> <documentTypeDescriptor> <field name="extensionPatch"> <documentTypeDescriptorPatch> <field name="patchList"> <list> <poPatch> <field name="fieldPath"> <String>name</String> </field> <field name="index"> <Integer>-1</Integer> </field> <field name="value"> <String>DITA-acme</String> </field> <field name="patchHandling"> <String>set</String> </field> <field name="anchor"> <null/> </field> </poPatch>
- In dita-advanced-company framework, rename the
<String>DITA-advanced-acme</String>
to<String>DITA-advanced-Company</String>
.For example:<?xml version="1.0" encoding="UTF-8"?> <serialized version="21.0" xml:space="preserve"> <serializableOrderedMap> <entry> <String>document.types</String> <documentTypeDescriptor-array> <documentTypeDescriptor> <field name="extensionPatch"> <documentTypeDescriptorPatch> <field name="patchList"> <list> <poPatch> <field name="fieldPath"> <String>name</String> </field> <field name="index"> <Integer>-1</Integer> </field> <field name="value"> <String>DITA-advanced-acme</String> </field> <field name="patchHandling"> <String>set</String> </field> <field name="anchor"> <null/> </field> </poPatch>
- In ditamap-company framework, rename the
<String>DITA Map-acme</String>
to<String>DITA Map-Company</String>
.For example:<?xml version="1.0" encoding="UTF-8"?> <serialized version="21.0" xml:space="preserve"> <serializableOrderedMap> <entry> <String>document.types</String> <documentTypeDescriptor-array> <documentTypeDescriptor> <field name="extensionPatch"> <documentTypeDescriptorPatch> <field name="patchList"> <list> <poPatch> <field name="fieldPath"> <String>name</String> </field> <field name="index"> <Integer>-1</Integer> </field> <field name="value"> <String>DITA Map-acme</String> </field> <field name="patchHandling"> <String>set</String> </field> <field name="anchor"> <null/> </field> </poPatch>
- In dita-company framework, rename the
- Browse to the dita-company/plugins folder and edit the file catalog.xml.
- Change the name of the plugin to match the name of your custom DTD.
For example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <nextCatalog catalog="com.acme.dita.dtd/catalog.xml"/> </catalog>
Tip: If you are unsure of the name of your plugin folder, this name can be found in the TEXTML Administration perspective under Repository > system > catalogs > master-catalog.xml.Following the ACME example, the master-catalog.xml file would contain the following line:<nextCatalog catalog="../plugins/com.acme.dita.dtd/catalog.xml"/>
Update the catalog entry in the template, but do not include
"../plugins/"
- Browse to dita-company/css/custom and edit the custom.css file.
Enter a simple stylesheet change in the lines following
/* Place your CSS here */
to test the framework.For example, the following CSS will change the topic titles to orange.
/* Place your CSS here */ *[class*=" topic/title "] { color:orange; }
- Save all the files you changed.
- Zip the folder dita-company to dita-company.zip.
- Upload the dita-company.zip into CCMS Web.