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

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 30: Line 30:
=== Complex questions ===
=== Complex questions ===
Supported tag names  
Supported tag names  
* FIELDLABEL
* ${FIELDLABEL}
* FIELDHELP
* ${FIELDHELP}
* CHOICEIMAGE
* ${CHOICEIMAGE}
* CHOICELABEL
* ${CHOICELABEL}
* CHOICETEXT
* ${CHOICETEXT}
* ANSWERLABEL
* ${ANSWERLABEL}
* ANSWERTEXT
* ${ANSWERTEXT}
* PICTURE
* ${PICTURE}
* COMMENT
* ${COMMENT}


=== Special considerations ===
=== Special considerations ===

Revision as of 10:01, 5 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}

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