|Top Previous Next|
As of version 3.9, the Publisher supports creation of dynamic calendar templates, meaning that the template will fit all years and different national preferences. This is achieved by placing special placeholders into the text shape, which will be later replaced with appropriate day, week and year numbers.
Font and color settings can be applied to the placeholders just as to the any text, and will be preserved during replacement.
When the user chooses a product with these placeholders, he will get the following dialog:
First, you need to add a TextSubstitutions parameter to each calender product inside the products.xml. Example:
<PRODUCT id="dm050001" active="1" selected="0" groupid="dm050">
<LongName>Calendar A5 14,8 cm x 21,0 cm</LongName>
<ShortName>14,8 cm x 21,0 cm (A5 portrait)</ShortName>
<StatusMsg>Calendar A5 14,8 cm x 21,0 cm</StatusMsg>
To enable calendar rendering for a product layout in the design mode, you need to define it for each text shape separately. This can be achieved by toggling the calendar button in the text edit dialog: