2022.2

Table Of Contents
ItemintheConnectdatabase(see"contentitem"onpage841).Custompropertiescanbeutilized
forfurtherprocessinginaWorkflowconfigurationwiththeRetrieveItemstask.TheRetrieve
Itemstaskretrievescustompropertiesalongwiththebaserecordinformation(seeRetrieve
ItemsinWorkflow'sOnlineHelp).
AddingaPostPaginationScript
ToaddaPostPaginationScript:
1. OntheScriptspaneatthebottomleft,clicktheblacktriangleontheNewbuttonandclickPost
Pagination Script.ThenewscriptappearsinthePostPaginationfolder.
2. Double-clickthenewscripttoopenit.Thescripteditorappears.
3. Changethenameofthescriptsothatitreflectswhatthescriptdoes.
Note: Scriptscanonlyhavethesamenamewhentheyarenotinthesamefolder.
4. Writethescript.Ifyouarenotfamiliarwithscripting,see"Writingyourownscripts"onpage368.
Note: Post Pagination ScriptsrunonlywhenaPrintsectionispreviewedoroutputted.
ToverifytheresultsofPostPaginationScriptsonacertainMaster Page,previewthePrintsec-
tiontowhichthatMasterPageisapplied.
CreatingaTableOfContents
Thistopicexplainshowtocreateamulti-page,cross-sectionTableOfContents(TOC)usingaPost
PaginationScript.
ForinformationaboutPostPaginationScriptsingeneral,see"PostPaginationScripts"ontheprevious
page.
Thebasicsofscript-writingintheDesignerareexplainedinthefollowingtopic:"Writingyourown
scripts"onpage368.
Step 1: Opening a Print template
CreateoropenaPrinttemplate.
MakesuretouseHTMLheadingslevel1andlevel2(<h1>and<h2>)inyourPrintsections,ifyouwant
tousethescriptsamplethatisgiveninStep3.Thisscriptcollectsthetextandpagenumbersofthese
headingsandputsthemintheTOC.
ToquicklychangeaparagraphintoaHeading,placethecursorinsideofit,orselecttheparagraph
(see:"Selectinganelement"onpage174).Thenselecttheappropriateelement,eitherontheFormat
menu,orfromthe'Elementtype'drop-downonthetoolbar.
Ofcourse,youcouldjustaswellcreateatableofcontentsusingotherheadinglevels,orevenotherele-
ments.Inthatcaseyou'llhavetoadjustthescriptaccordingly.
Page 411