Alignment Rules
In the Alignment Rules, use horizontal and vertical block mapping functionality in order to avoid unnecessary spacing between the blocks. This happens in the case if a block has blank content, then the block beside it should automatically move to the place of the first block. To set this rule understand the block types.
There are two types of blocks:
- Reference Block: Block whose position is referred by dependent blocks.
- Dependent Block: Block whose position is based on the content of referenced blocks.
Here is how you can set up a dependent block:
- Select any product template and click on the Action button and select Manage Blocks from the drop-down.
- From the Manage Blocks tab, click on the Manage Properties link of any block.
- In the Manage Properties screen, click on the Add button from the top-right corner to add a property.
- In the property drop-down, select the Alignment Rules.
- Select the directions for Reference and Dependent block as either Vertical or Horizontal.
As shown in the above image when phone number block is kept blank the remaining two blocks will adjust their position themselves.
Dependency only for text line blocks. The Dynamic Block Positioning System works only for blocks of the type Text line. So dependent block & reference block should be of the type Text line.
Do not keep a cyclic dependency. Do not assign any cyclic dependency between blocks. E.g. - Block A depends on Block B, Block B depends on Block C and Block C depends on block A. This will run in an infinite loop and disrupt the look and feel of your PDF Block.
Advanced operations Block dependency will not work in the block with advanced settings like text orientations of rotation etc.
Fit-method Always, set Block Fit-method as no fit. In the AutoFit method, this rule will not work.