Upgrading Template Building Blocks when upgrading from SmartTarget 2011 SP2
If you are upgrading from SmartTarget 2011 SP2, you need to move your old SmartTarget Template Building Blocks to a backup folder and then use the Create Default Building Blocks command in Template Builder, which creates a new set of Template Building Blocks. After running this command, you can choose to keep continuing the old, deprecated Template Building Blocks, or you can migrate to the new Template Building Blocks, as SDL recommends.
About this task
If you are upgrading from SmartTarget 2011 SP2, note the following Templating Building Block changes that have taken place:
| Product release | Changes introduced |
|---|---|
| SDL SmartTarget 2014 | All the default SmartTarget Template Building Blocks were changed, except Add to SmartTarget. |
| SDL SmartTarget 2014 SP1 | The Add SmartTarget Query Template Building Block adds the pageId attribute to the <tcdl:query> tag produced by the template. As a result, you can filter the Page on Promotions (optional) and Experiments (required). |
| SDL Web Experience Optimization 8 | All Template Building Blocks that mentioned SmartTarget were renamed. |
Procedure
- Open Content Manager Explorer.
- Go to your Default Templates Folder and create a subfolder called OLD SmartTarget Templates.
- Move all your old SmartTarget default Template Building Blocks, except Add to SmartTarget, to the OLD SmartTarget Templates Folder.
- Reload your default Experience Optimization Template Building Blocks:
- Start Template Builder by selecting from the Windows menu.
- Select to load the Experience Optimization (and other) default Template Building Blocks.
- Select the parent Folder which contains the Folder Default Templates and click OK.
- Your Content Manager instance is now upgraded. If you want, you can complete the process by migrating your code, instead of staying with your now deprecated, old Template Building Blocks. To migrate your templating code, do the following:
- To use the filtering introduced in SDL SmartTarget 2014 SP1, republish your Web pages when you start adding Experiments, or earlier if you want to use filtering on Promotions.