2022.2

Table Of Contents
Tocreateacustomtemplatereport,youneedtwofiles:Atemplatedesignwiththedesiredlayoutand
variabledata.This.OL-templatefilehastobemadeintheDesigner.Adatamappingconfiguration
providesthevariabledata.Youcouldusethedatamappingconfigurationmadeforthestandardtem-
platereport,orcreateanotheroneintheDataMappermodule,usingthestandardXMLtemplatereport
asdatasample.TheDataMapperisincludedonlyinPlanetPressConnectandPReSConnect.Data
mappingconfigurationshavetheextension.OL-datamapper.Thefollowingzipfilecontainsboththe
templateanddatamappingconfigurationthatareusedtogeneratethestandardtemplatereport:
http://help.objectiflune.com/en/archive/report-template.zip.
Resources
ThispageclarifiesthedifferencebetweenInternal,ExternalandWebresourcesthatmaybeusedina
template,andexplainshowtorefertotheminHTMLandinscripts.
Allresourcesthatatemplateusesaredisplayedinthe"Resourcespane"onpage521.
Tip: TheTextFilterboxatthetopoftheResourcespaneallowstolookfortextinthenameof
resourcesandinthesourceofanytext-basedfiles:HTML(includingsections,masterpages,and
snippets),JSON,JSandCSS.
Internal resources
Internalresourcesarefilesthatareaddedtoandsavedwiththetemplate.
Toaddimages,fonts,stylesheets,andsnippetstoyourtemplate,youcandragorcopy/pastethem
intotheResourcesPane.Seealso:"Images"onpage239,"Snippets"onpage250,"Stylingtemplates
withCSSfiles"onpage261and"Fonts"onpage291.
Resourcefilescanalsobedraggedorcopy/pastedoutofthetheapplicationtosavethemonalocal
harddrive.
Alternativelyyoucouldimportresourcesandscriptsfromanothertemplate;clickFile > Import
Resources...inthemenuandselectatemplatetoimportresourcesfrom(see).
Onceaddedorimported,internalresourcesareaccessedusingarelativepath,dependingwhere
they'recalledfrom.Resourcescanbelocatedinthefollowingfolders:
l
images/containsthefilesintheImagesfolder.
l
fonts/containsthefilesintheFontsfolder.
l
css/containsthefilesintheStylesheetsfolder.
l
js/containsthefilesintheJavaScriptsfolder.
l
snippets/containsthefilesintheSnippetsfolder.
Page 108