Content codes are used to assign different types of information in a template. The one content code that every template needs is INFORMZ CONTENT HERE or CONTENT HERE (for iMIS) to display stories. There are also content codes for the date, table of contents, event registration information, ballot information, and ads.
If you're using an advanced template - one that can display stories in discrete sections of the template - the corresponding codes are prefixed with LOC. The main content code looks like this:
%%LOC(INFORMZ CONTENT HERE)%%
Inserting a Content Code
- When editing a template, place your cursor where you want to insert the content code and click the Content Code button in the editor.
- In the resulting window, choose the type of content code you want to insert in your template.
The selected content code appears in the template where the cursor was placed.
- In a standard template, they look like this:
- INFORMZ CONTENT HERE
- TOC HERE
- DATE SHORT HERE
- In an advanced template, they look like this:
- %%LOC(INFORMZ CONTENT HERE)%%
- %%LOC(TOC HERE)%%
- %%LOC(DATE SHORT HERE)%%
Important notes
NOTE: Advanced templates support the use of multiple content codes while standard templates can only use one content code. If you're unable to add another content code to a template, check the properties to see if it is a standard template.
NOTE: If you're using multiple location codes, don't repeat the same location code name. Doing this causes content to be repeated.
NOTE: When adding a new content code to an advanced template, make sure to recreate the text version of the template; otherwise, the changes made to the template are reflected in the text version.
NOTE: Content codes are case sensitive. This means that if you enter %%LOC(PREHEADER)%% (uppercase) in your HTML template, but enter %%LOC(preheader)%% (lowercase) in your text template, the information won't populate in the text template. The templates only work if they have the exact same content code (this is easily caught when testing, so don't forget to test before you send).