Like creating new Block via user Interface its possible to create new Block by writing definition.xml file command that instruct CJT to create new Block.

Only Global Blocks can defined via Package definition file. Block cannot assigned to WordPress pages when created via Package, assignment to page must be done through UI by webmaster.

Block will be deactivated by default until its being activated by webmaster.

Creating Block can be done by using <object> tag. object tag with Type=’block’ would instruct CJT to create new Block by using the fields laying between <object></object> tags.

<object type="block">
  BLOCK FIELDS GOES HERE...
  .....
  .....
  .....
</object>

Basic Block Data

Block Data is what defining the Block, the basic Data Field is currently name and code. They can defined as following:

<object type="block">
  <name>BLOCK-NAME</name>
  <code>[RAWDATA] or [CODEFILE]</code>
</object>

Code data can be raw or point to file. Raw data must be presented inside CDATA section as following.

<code><![CDATA[RAW-CODE]]></code>

In many situation specially when Block Code is huge, its better to add Block Code in external file as following

<code locate='file'>CODE-FILE</code>