Template Compounds
Description
Compounds is generated by using the "Compound" option. The Compound option is added after the
action. Compound parameters are added after a ? character which is appended to Compound.
For example: /1/Render/Compound?Elements[0]=Templates/LayoutTemplate.PXF%3fPersonalizations[0].Name=Placeholder%26Personalizations[0].Design=TEMPLATE-INSERT&Elements[1]=Templates/TemplateToInsert.PXF%3fPersonalizations[0].Name=DESIGN%26Personalizations[0].Design=Mascot.PXF%26Personalizations[1].Name=Line+1%26Personalizations[1].Text=LINE+ONE
Parameters
-
Elements[] - Array of template components. Values are URL encoded Templates components
- The first Element is assumed to be the layout or insert template.
- The second Element in the array being the second Template will be inserted into this first Template.
- The first Elements Personalization value for Design should be a value of TEMPLATE-INSERT or INSERT-TEMPLATE. Either value is supported and will signal the compound that this will be used for inserting.
-
For all available Template parameters see the Parameters section under Templates.
Compounds can have their Start/Stop points specified.
See start/stop parameters.
Compounds can be transformed.
See transformation parameters.
Example
/1/Render/Compound?Elements[0]=Templates/CHEM4_FULL-BLOCK_05_CIRCLE_LAYOUT_2.PXF%3fPersonalizations[0].Name=Placeholder%26Personalizations[0].Design=TEMPLATE-INSERT&Elements[1]=Templates/CHEM4_FULL-BLOCK_05_TEMPLATE.PXF%3fPersonalizations[0].Name=DESIGN%26Personalizations[0].Design=136150.PXF%26Personalizations[1].Name=Line+1%26Personalizations[1].Text=150%26Personalizations[1].TextColour=TEAM+BLUE%26Personalizations[2].Name=Line+2%26Personalizations[2].Text=STATE+ALL%26Personalizations[2].TextColour=LIPSTICK%26Personalizations[3].Name=Line+3%26Personalizations[3].Text=DIVISION+V%26Personalizations[3].TextColour=ORANGE+SUNRISE%26Personalizations[4].Name=Line+4%26Personalizations[4].Text=2017%26Personalizations[4].TextColour=LIME+GREEN
This produces a template within a template:
- Templates/CHEM4_FULL-BLOCK_05_CIRCLE_LAYOUT_3.PXF%3fPersonalizations[0].Name=Placeholder%26Personalizations[0].Design=TEMPLATE-INSERT
- Templates/CHEM4_FULL-BLOCK_05_TEMPLATE.PXF%3fPersonalizations[0].Name=DESIGN%26Personalizations[0].Design=PulseLogoVerticalHQ.PXF%26Personalizations[1].Name=Line+1%26Personalizations[1].Text=Pulse%26Personalizations[1].TextColour=TEAM+BLUE%26Personalizations[2].Name=Line+2%26Personalizations[2].Text=Microsystems%26Personalizations[2].TextColour=LIPSTICK%26Personalizations[3].Name=Line+3%26Personalizations[3].Text=Ltd%26Personalizations[3].TextColour=ORANGE+SUNRISE%26Personalizations[4].Name=Line+4%26Personalizations[4].Text=2017%26Personalizations[4].TextColour=LIME+GREEN