Layouts and Content Templates
Overview
SmartIQ allows you to create a Layout project which you can then use to control the style and structure of the resulting Word document.
A layout project can be assigned to multiple content projects to allow common elements like headers/footers and word styles to be centrally controlled
Creating a Word Layout Template
You will need a suitable Word document containing any styles that you plan to apply in the content template and at least one placeholder for the content to be inserted into.
You can also include other placeholders in the Layout template for additional elements that need to always apply to documents using that layout such as date or other information in the header or footer.
For example your Layout template document might look like below. There are a number of specified styles which can be used in the content, there are some general placeholders and also a content placeholder that will be leveraged by the content template.
![layouttemplate.png 893](https://files.readme.io/d15e941-layouttemplate.png)
Creating a Layout Project
- Open Design and choose Create new project
- Give the project a name and then choose the project type Layout
- Now choose the layout template file you created.
![newlayout.png 578](https://files.readme.io/4bf3ae0-newlayout.png)
- Select okay and create the new project
- Open the Layout page on the left hand menu and select the Layout template you uploaded.
![layout..png 297](https://files.readme.io/7c62fb9-layout..png)
- In the Template Properties window, choose the placeholder you want for the content.
![contentplaceholder.png 404](https://files.readme.io/3d65ae2-contentplaceholder.png)
- You can add additional questions for any other placeholders to be associated with the layout if you wish. Anytime you use the layout, those questions will be include with the project.
![otherplaceholders.png 307](https://files.readme.io/909c39c-otherplaceholders.png)
Using the Layout Project
Once created a layout can be applied to any new project when it is published.
- Create a project for the content layout. This project would often have a Word template of it's own with some suitable placeholders for completion as required. For example:
![content.png 596](https://files.readme.io/57aabc3-content.png)
- Publish the content project in Manage. On the publish screen there is a select box marked Layout (Optional). Select the layout you created earlier.
![selectlayoout.png 784](https://files.readme.io/03d1f82-selectlayoout.png)
![selectedlayout.png 725](https://files.readme.io/7629585-selectedlayout.png)
- Navigate to the content project in Produce. You will see that your project is present but that the page of placeholders from the Layout is also included and when you submit and generate the project, the final document generated is your Layout document containing the content as specified by the content project.
![project.png 905](https://files.readme.io/76cfa95-project.png)
You can use the same Layout with multiple content projects and you can use the same content project with different Layouts - this allows you to control the look and feel of the resulting documents in a number of different ways.
Updated over 4 years ago