2022.2

Table Of Contents
Connect2018.2Enhancements
Sassy CSS
PrintShopMailConnect2018.2introducesSassCSSpreprocessorfunctionalitytotheDesigner.
(SHARED-64625)
Sass(Syntactically Awesome Style Sheets)isanextensionofCSSthatenablesyoutousethingslike
variables,nestedrules,inlineimportsandmore.
MaintenanceofCSSstylesfortemplatesrequiringmanydifferentstylerulescanbecomeatedious
undertaking.Stylesheetsfileskeepgettinglargerandmorecomplexandthushardertomaintain.Some
commonchallengesinclude:
l
Howtogroup/organizerulesthatbelongtogether?(e.g.stylesforanaddressblock,footeror
dynamictable)
l
Howtoupdateacolorvalueorfontfamilyacrossmultiplerulesandevenacrossstylesheetfiles?
ACSSpreprocessorlikeSasssolvestheseproblemsandhelpsyouwritemaintainablecode.
InConnectDesigneroptionshavebeenaddedtotheStylesheetsfoldertocreateandcompileSass
files(.scssfilewrittenusingSass3syntax).FormoreinformationontheSasslanguagesee:
www.sass-lang.com.
Compilinga.scssfileoutputsanormalCSSstylesheetfilewhichisautomaticallylinkedtothecurrent
section.
AlternativelyusedraganddroptolinktheresulttoothersectionsorusetheIncludesdialogofaspe-
cificsection.
Dynamic Sheet Configuration Settings
Acommonrequirementfordynamicprinttemplatesistheabilitytoswitchbetweensimplexandduplex.
TypicallythisissolvedbyduplicatingaPrintSection,enablingDuplexintheSheetConfigurationdialog
andthenswitchingbetweenthesimplexandduplexsectionsbyControlScript(orthroughtheCondi-
tionalPrintSectionwizard).
InConnect2018.2newscriptingcommandshavebeenaddedtodynamicallysetSheetConfiguration
optionsfromwithinaControlScript.ThisallowsyoutosettheDuplexmodedynamically,ordothings
suchasapplyingadifferentMasterPagesbaseduponthedata,oromittingemptysidesfromthelast
sheet,orsinglesheets.
ThefollowingControlScriptsampleenablesDuplexmodefor"Section 1":
let section = merge.template.contexts.PRINT.sections["Section 1"];
Page 982