{{Verzeichnis}}
{{vtDBSelect: SELECT name FROM {vtConfig:mysqlTablePrefix}content WHERE containerID = {vtID} }}
{{vtDBLoop}}
{{vtSet:ImageList="{vtGet:ImageList},{vtDBField:name}"}}
{{vtEndDBLoop}}
{{vtEndDBSelect}}
{{vtSet: istKategorie="{istKategorie}"}}
{{vtSet: Verzeichnis="{Verzeichnis}"}}
{{vtSet: pfad="{vtGlobal:pxtcPathLores}/{Verzeichnis}/"}}
{{vtCalc: getFileList( '{vtGet:pfad}', '^.+\.(jpg|JPG)$' ) }}
{{vtRepeat: {vtResult} }}
{{vtIf: {vtItem} .nin. {vtGet:ImageList} }}
{{vtSet: istKategorie=""}}
{{vtIf: {vtGet:Unlimited} .neq. 1}}
{{vtCalc: {vtGet:GlobalCount} + {vtGet:Counter} }}
{{vtIf: {vtResult} .gte. {vtGet:GlobalLimit} }}
{{vtSet: ReachedLimit="1"}}
{{vtEndIf}}
{{vtEndIf}}
{{vtExit: {vtGet:ReachedLimit} .eq. 1}}
{{vtCalc: {vtGet:Counter} + 1 }}
{{vtSet: Counter}}
- {{vtCurrentItem}}
{{vtCalc: makeThumbnail( utf8_encode('{vtGet:Verzeichnis}/{vtCurrentItem}') ) }}
{{vtSet: Title="", Keywords="", Description="" }}
{{vtCalc: getIPTCHeader('{vtGet:pfad}/{vtCurrentItem}', 'Title', '{vtGet:charset}' ) }}
{{vtSet: Title}}
{{vtIf: {vtGet:Title}.eq.}}
{{vtSet: Title="{vtCurrentItem}"}}
{{vtEndIf}}
{{vtCalc: getIPTCHeader('{vtGet:pfad}/{vtCurrentItem}', 'Keywords', '{vtGet:charset}') }}
{{vtSet: Keywords}}
{{vtIf: {vtPostValue:keywords} .neq.}}
{{vtIf: {vtGet:Keywords} .neq.}}
{{vtSet: Keywords="{vtGet:Keywords}, {vtPostValue:keywords}"}}
{{vtElse}}
{{vtSet: Keywords="{vtPostValue:keywords}"}}
{{vtEndIf}}
{{vtEndIf}}
{{vtCalc: getIPTCHeader('{vtGet:pfad}/{vtCurrentItem}', 'Description', '{vtGet:charset}') }}
{{vtSet: Description}}
{{vtDo:-act="create",-template="image",-target="{vtID}",
Name="{vtGet:Title}",
Verzeichnis="{vtGet:Verzeichnis}",
Remarks="{vtGet:Description}",
Keywords="{vtGet:Keywords}",
Dateiname="{vtCurrentItem}",
-properties[name]="{vtCurrentItem}",
-properties[protected]="1"
}}
{{vtEndIf}}
{{vtEndRepeat}}
{{vtCalc: getFileInfo('{vtGet:pfad}', 'mtime') }}
{{vtDo: -act="update", -obj="{vtID}", Timestamp="{vtResult}", istKategorie="{vtGet:istKategorie}"}}