
Creating Hybrid Extension packages (version 5.0 only)
57
Validate ZXP format extension
Upon installation of ZXP format extension, Extension Manager validates its digital signature. For
some validation results, it prompts the user to decide whether to continue with the installation.
Creating Hybrid Extension packages (version 5.0 only)
Extension Manager CS5 supports hybrid extension , which let you package two types of files in
one extension: CS extension package file with name ".zxp", and files can be contained in hybrid
and ordinary extensions. These two types of files are installed in different ways. CS extension files
are installed to a fixed folder, while hybrid and ordinary extension files are installed to the folder
specified by destination attribute. So to create hybrid extension packages, you have to specify file
type. You can do it in two ways: use
file-type
attribute in
<
file
>
tag, or use
default-file-
type
attribute in <
files
>
tag.
Use
file-type
attribute
For CS extension package file, you need to specify
file-type
attribute as
csxs
. For ordinary file,
you need to specify
file-type
attribute as
ordinary
or
plugin
. For more information, refer to
file-type
attribute in <
file
> tag.
Example
In the below example, file "MyCreativeSuiteExtension.zxp" is a CS Extension package file, and
file "foo" is ordinary file. "MyCreativeSuiteExtension.zxp" is installed according to a fixed folder,
so you don't need to specify the
destination
attribute. Even you do, it is ignored. While for file
"foo", you has to specify
destination
like below example illustrates.
<files>
<file source="MyCreativeSuiteExtension.zxp" file-type="csxs" />
<file source="foo" destination="$dreamweaver/configuration" file-
type="ordinary" />
</files>
Use
default-file-type
attribute
You can specify
default-file-type
attribute in <
files
> tag, so any file wrapped in that files
tag use that file type if the file doesn’t have attribute
file-type
. For more information, refer to
default-file-type
attribute in <
files
> tag.
Example
In the below example, files "MyCreativeSuiteExtension1.zxp" and
MyCreativeSuiteExtension2.zxp" are CS extension package, while files "foo1" and "foo2" are
ordinary files.
<files default-file-type="csxs">
<file source="MyCreativeSuiteExtension1.zxp" />
<file source="MyCreativeSuiteExtension2.zxp" />
</files>
<files default-file-type="ordinary">
<file source="foo1" destination="$dreamweaver/configuration" />