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

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 40: Line 40:
   ${PICTURE}
   ${PICTURE}
   ${COMMENT}
   ${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 ===
=== Special considerations ===

Revision as of 16:12, 9 April 2019

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