New Word template to Kameleon (long formula)
Points to consider
Logo: Does the document use same logo as defined in Companies?
Footer: Does the document use same footer as defined in Company unit?
Layout template: What kind of styles there are in the document? What are the marginals? What is a color scheme of the document?
Meta fields: Which meta fields are used in the document? Are they displayed on the document, are they transferred to SharePoint?
Document's content: Is there a ready-made text in the document
If the document template is totally different than any other document in your Kameleon templates, you can make it as document content that has everything made ready.
Do I need a new layout template:
![image-20240517-102350.png](../__attachments/2201059338/image-20240517-102350.png?inst-v=085a3608-dab4-4a7f-8a36-08d25c97424e)
![image-20240517-101015.png](../__attachments/2201059338/image-20240517-101015.png?inst-v=085a3608-dab4-4a7f-8a36-08d25c97424e)
![image-20240517-102004.png](../__attachments/2201059338/image-20240517-102004.png?inst-v=085a3608-dab4-4a7f-8a36-08d25c97424e)
Example:
We want to create a document template which has different layout than other templates.
There is a different footer
In the header there are some different meta fields (Author’s Department / Author’s name and Order number)
Styles: The body text is indented to 2,3 cm from the margin and Headings have no numbering.
We need to create a layout template with the above styles and footer
![image-20240517-123033.png](../__attachments/2201059338/image-20240517-123033.png?inst-v=085a3608-dab4-4a7f-8a36-08d25c97424e)
Meta fields
Begin by creating meta fields. We need to use them later in the layout template.
Create a new metagroup for author fields and combined metafield department_and_name
Create metafield confirmation order
Layout template
Create a new layout template in the Portal’s layout templates
Download existing layout
Rename downloaded template in the Windows explorer
Drag it to the portal
Open the layout template to Word with Content tool
Change styles
Add Footer (because we have different footer in this document than normally)
Check and change metafields in the header
Delete Author name -content control and add DepartmentAndName
Delete unnecessary content controls and add Confirmation number content control.
Split and merge cells in the header if needed (it is easier to control their places if they are in the table, but it is not necessary to have a table in the header or footer).
If you want that the user can choose whether there are page numbers in the document or not when creating it, you should use bookmark dFieldpages in the First Page Header. You can add bookmark with the Insert -ribbon’s Bookmark button.
Upload the changed layout template to the portal
If the document has different first page (Layout - Page setup), Header and Footer changes has to be done to the First Page Header / footer and also to the Header (in the second page of the document).
![image-20240517-120947.png](../__attachments/2201059338/image-20240517-120947.png?inst-v=085a3608-dab4-4a7f-8a36-08d25c97424e)
Use bookmark dFieldpages2 if you need page numbers also to the other pages than first page.
Document’s content
Create Document’s content. Create Document category if needed and drag the document content to the document category.
Save your document without header and footer.
Give it a suitable name.
Drag it to the portal.
Create document’s definitions (more info in Create/Update document panel)
General
Layout
Because there is a ready-made footer in the document template, the user must not add footer.Metafields
Select which metafields are shown in the document
Open the document with Content tool if you want to place metafields to the document’s content
Upload it back to portal
Test your document template
Now your document template is ready for testing.
Check that your Kameleon is in test mode (New document can be seen only in test mode before it has been published)
Select document
Fill meta data information
Create document
Correct layout template, metafields, content or definitions if needed.
Publish your document template
If everything is ok, publish your document.