Difference between revisions of "Tutorial/Word documents from templates"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
m (25 revisions imported)
 
(21 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Basic template ==


=== Checklist ===
=== Checklist ===
# [Solution] > "Advanced" > Template: "Add"
# [Solution] > "Advanced" > Template: "Add"
#* Set correct content type
#* Copy template tags from popup: "Template field tokens" > "Office"
#* Copy template tags from popup window ("Office tags")
# Prepare file on local PC
# Prepare file on local PC
#* Copy placeholder tags from backend
#* Copy placeholder tags from backend
#* Save in safe location so you dont need to download when updating later
#* Save in safe location so you dont need to download when updating later
# [Solution] > "Advanced" > Template: [new template]
# [Solution] > "Advanced" > Template: "Add"
#* Set content type to "MS Word" or "PDF"
#* Upload file
#* Upload file
#If solution has more than 1 export template
#If solution has more than 1 export template
#* Check that solution has [Solution] > "Advanced" >"Template selector" enabled
#* Check that solution has [Solution] > "Advanced" >"Template selector" enabled
[[File:Tutorial_wordtemplate.PNG]]
=== Trouble shooting ===
Content from Tempus Serva is not displayed inside tags
* Disable spelling/grammar
* Take care not to edit the text inside tags
* Select the whole tag before applying styling
* Paste tags from notepad or other program without text styling
== Subtemplates ==
Subtemplates can be used for special fields that support the notion.
* Complex question
The whole sub template is injected into the tag, as if it had been normal data.
=== Complex questions ===
Supported tag names
  ${FIELDLABEL}
  ${FIELDHELP}
  ${CHOICEIMAGE}
  ${CHOICELABEL}
  ${CHOICETEXT}
  ${ANSWERLABEL}
  ${ANSWERTEXT}
  ${PICTURE}
  ${COMMENT}
=== Complex questions ===
Supported tag names in first template
  ${FIELDLABEL}
  ${FIELDHELP}
Supported tag names in second template
  ${LOCATION}
  ${CHOICEIMAGE}
  ${CHOICELABEL}
  ${CHOICETEXT}
  ${ANSWERLABEL}
  ${ANSWERTEXT}
=== Special considerations ===
Named styling is not supported, but can work with a workaround.
# Copy styled content from subtemplate
# Paste into main template and save file
# Remove content and save again
== Trouble shooting ==
=== Table page flow ===
Word does not respect table setting for page flow, so table rows break in undesired ways
# Create a new empty table with one cell (without borders)
# Rightclick cell and disable "Allow row to break across pages" / "Tillad opdeling af række"
# Paste the old table into the new table
[[File:RowControl.PNG]]

Latest revision as of 11:55, 10 December 2021

Basic template

Checklist

  1. [Solution] > "Advanced" > Template: "Add"
    • Copy template tags from popup: "Template field tokens" > "Office"
  2. Prepare file on local PC
    • Copy placeholder tags from backend
    • Save in safe location so you dont need to download when updating later
  3. [Solution] > "Advanced" > Template: "Add"
    • Set content type to "MS Word" or "PDF"
    • Upload file
  4. If solution has more than 1 export template
    • Check that solution has [Solution] > "Advanced" >"Template selector" enabled

Tutorial wordtemplate.PNG

Trouble shooting

Content from Tempus Serva is not displayed inside tags

  • Disable spelling/grammar
  • Take care not to edit the text inside tags
  • Select the whole tag before applying styling
  • Paste tags from notepad or other program without text styling

Subtemplates

Subtemplates can be used for special fields that support the notion.

  • Complex question

The whole sub template is injected into the tag, as if it had been normal data.

Complex questions

Supported tag names

 ${FIELDLABEL}
 ${FIELDHELP}
 ${CHOICEIMAGE}
 ${CHOICELABEL}
 ${CHOICETEXT}
 ${ANSWERLABEL}
 ${ANSWERTEXT}
 ${PICTURE}
 ${COMMENT}

Complex questions

Supported tag names in first template

 ${FIELDLABEL}
 ${FIELDHELP}

Supported tag names in second template

 ${LOCATION}
 ${CHOICEIMAGE}
 ${CHOICELABEL}
 ${CHOICETEXT}
 ${ANSWERLABEL}
 ${ANSWERTEXT}

Special considerations

Named styling is not supported, but can work with a workaround.

  1. Copy styled content from subtemplate
  2. Paste into main template and save file
  3. Remove content and save again


Trouble shooting

Table page flow

Word does not respect table setting for page flow, so table rows break in undesired ways

  1. Create a new empty table with one cell (without borders)
  2. Rightclick cell and disable "Allow row to break across pages" / "Tillad opdeling af række"
  3. Paste the old table into the new table


RowControl.PNG