User Tools

Site Tools


awp:pattern_format

Pattern Format

In different places a text can be generated from a pattern which incorporates field values of an item.

Format Description

The supported placeholders in the pattern are:

{fid:field_identifier:options}Field Value Reference
fid:Prefix indicating a field value reference
field_identifierName of the field
optionsOptional configuration for rendering of specified field
Date Fields
PatternCustom pattern to render a date value{fid:date:yyyy-MM-dd_HH-mm-ss}
2025-01-31_21-41-29
File Fields
basenameBasename of the source asset{fid:asset:basename}
test.jpg → test
extensionExtension of the source asset{fid:asset:extension}
test.jpg → jpg
noneAsset name of the source asset{fid:asset}
test.jpg → test.jpg
Nested Tables
SeparatorEntire options value is used to separate the display string of multiple entries from the nested table{fid:categories:-}
category1-category2-category3
String fields
LocaleUse specified locale instead of the current session locale for a l10n String field{fid:stringfield:de-DE}
Tag Groups
SeparatorEntire options value is used to separate the display string of multiple tags from the tag group{fid:tag_group:_-_}
tag1_-_tag2_-_tag3
{extension}Extension of the produced asset rendition
Only available in the context of an asset production

Example pattern

The pattern img_{fid:categories}_{fid:textfield:de-DE}_#{fid:_system_object_id}_{fid:date:yyyy-MM-dd}.{extension} is producing something like img_category1_ich bin text_#1234_2025-10-21.jpg

awp/pattern_format.txt · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki