Skip to Content

Metadata Editor

Edit B2C Commerce metadata, services, jobs, site preferences, custom objects, slots and libraries XML in a tree with forms, filters, fixes and code usages

The Metadata Editor opens the import files of a site archive as a tree of what the file defines: metadata, services, jobs, site preferences, custom objects, content slots and content libraries. A toolbar sits over the tree, and a Properties or XML panel under it shows the selected row. Every change is an edit of the XML, written where the schema expects it, and one Undo step

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

Files it opens

FileRoot elementTabThe tree shows
MetadatametadataMetadata EditorObject types, their attribute groups and attributes, see Metadata
ServicesservicesServices EditorServices, profiles and credentials
JobsjobsJobs EditorJobs with their flows, splits and steps
Site preferencespreferencesPreferences EditorPreferences by group, a column per instance type
Custom objectscustom-objectsCustom Objects EditorOne row per object, a column per attribute of its type
Content slotsslot-configurationsSlots EditorSlots, their contexts and configurations, see Slots Editor
Content librarylibraryLibrary EditorFolders, content assets, Page Designer pages, regions and components, see Library Editor

Open a file

A file opens from its root element and namespace, whatever its name or folder: any .xml file whose root is <metadata xmlns="http://www.demandware.com/xml/impex/metadata/2006-10-31"> is metadata. Two tabs sit under the editor, as for pipelines: the file's tab first, such as Metadata Editor or Services Editor, and Text beside it. Both show the same document, so Undo covers both. The Text tab opens with the caret on the selected row's XML, and back on the first tab the row under the caret is selected

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

Open the files from B2C Metadata, or create one: right-click a folder such as sites/site_template/meta and choose New › Metadata File or New › Site Archive File. A metadata file is System object extensions (system-objecttype-extensions.xml) or Custom object types (custom-objecttype-definitions.xml). A new metadata file shows No object types yet with the links Extend a system object and Add a custom object type

What every file has

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

The toolbar is one row, left to right:

ControlWhat it does
AddThe file's adds, such as Attribute… in metadata or Service…, Profile… and Credential… in services. The first takes Cmd+N / Alt+Insert
DeleteDeletes the selected rows
SearchFilters the tree, such as Search the IDs and URLs for services. Cmd+F / Ctrl+F focuses it
ScopesAll first, then the file's own, such as Services, Profiles, Credentials
Quick pillsUp to two filters with their counts, such as Not linked and Broken links
FiltersEvery filter, with how many rows each shows
ResetTakes off the filters and the search, keeping the scope
Count3 services, or 2 of 3 while you filter
ProblemsThe problems in the file. A click opens the XML and its problems
Expand All, Collapse AllThe tree's branches, for files with a tree

As the editor narrows, the count goes first, then Reset, then the quick pills, then the search shrinks, then the tree buttons and the scopes. What folds moves into the Filters popup

Columns and groups

The tree is a table of up to 12 columns. Right-click the header to show or hide a column, Reset Columns, or change the grouping, such as Group by Prefix in services. Columns fold on a narrow editor. A row with a problem has a wave under its name, a red cell names something the file doesn't hold, and a blue cell links to it

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Properties and XML

The panel under the tree has Properties and XML, which split side by side and fold down to their tabs, see Split view. Show in XML in the form selects the row in the XML. Properties lays the form out in columns of sections. A long text, such as an HTML body or a JSON value, opens in an editor Beside the Form, Below the Form or In the Form

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

With no row selected, the panel shows the file: its counts and adds, its Archive, what it Applies to (a site or the organization), Show in B2C Metadata and New Uninstall File

Read only and empty

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

A banner tells you when the file is read only:

BannerWhy
The XML has errors: the design view shows the last good version, read only. Fix them in the XMLThe XML doesn't parse
The metadata editor needs an Intellij SFCC license: the file is shown read-only, or the same with the file's tab, such as The Services editorNo license, see License
… may already be applied: an import set adds a new migration instead of editing oneThe file is in a migration folder such as 20260101T120000. Edit Anyway unlocks it

While read only, the adds, Delete and the fixes are off. When the search or a filter leaves no rows, the tree reads Nothing matches "…" with Clear "…", Show all, not only … and Clear the filter

Actions and shortcuts

Right-click a row for Add, the file's own actions, then Delete, Copy as XML, Paste, Copy ID, then Show in XML, Compare With… and Find Usages in Code

ActionShortcutWhat it does
Show in XMLThe Edit Source shortcutSelects the row in the XML
Copy IDThe IDs of the selected rows, one a line
Copy as XMLCmd+C / Ctrl+CThe rows' XML, secrets left out
PasteCmd+V / Ctrl+VXML rows, or rows from a spreadsheet
Compare With…A diff with the same row in another file
Find Usages in CodeAlt+F7Scripts and templates that name the row
Duplicate…Cmd+D / Ctrl+DA copy under a new ID
Rename…Shift+F6, F2Renames the row, the links to it follow
Move Up, Move DownThe IDE's move line keysSteps, flows, components and group members keep their order
Go toCmd+B / Ctrl+BThe template, step type or content the row names

Enter opens a row or a branch. Double-click a cell to edit it, or a row to open Properties

Problems and fixes

Each file is checked against its schema and its kind's rules. The schema checks read like x does not take y, x goes before y in z, x needs y and is "v", not one of …. The problems count opens the XML tab with the list beside it, each problem with its line and its fix. Alt+Enter runs the fix in the list or in the XML

In services, Profile "acme2" is not in this file offers Create Missing Profile, which writes the profile with the platform defaults

Mark for Deletion on a service, job, custom object, slot configuration or library row keeps only its ID with mode="delete", so the import deletes it

Copy, paste and other files

  • Paste writes the rows at their place in the schema, and asks Paste as Copies or Replace when the IDs already exist
  • Paste also reads rows copied from a spreadsheet, by their headers or by the columns shown
  • New Uninstall File writes the file's copy for the uninstall archive: an install folder in the path becomes uninstall, otherwise it writes an _uninstall sibling
  • Other Files in the form lists the same ID in the project's other files, with Open and Compare. Compare leaves the secrets of both sides out
  • The Structure view and the File Structure popup show the editor's rows

What the editor writes

  • Each change is one command named for it, such as Add Attribute fabric, so Undo reverts it
  • Elements go where the schema puts them, and text is escaped
  • Turning a metadata flag off writes false. An import leaves a setting the file doesn't name as it is on the instance
  • A new attribute gets what a Business Manager export writes, such as mandatory-flag false and min-length 0
  • Renaming an attribute renames it in the file's groups too. Code keeps reading the old ID
  • Deleting an attribute or a type doesn't delete it on an instance. Delete it in Business Manager too

Metadata

A metadata file, such as system-objecttype-extensions.xml, shows the object types it extends or defines, their attribute groups and their attributes, checked against the bundled metadata.xsd

The toolbar

ControlWhat it does
AddAdds an Attribute… (Cmd+N / Ctrl+N), an Attribute Group…, a System Object Extension… or a Custom Object Type…
DeleteDeletes the selected rows. On rows that a group only lists, it reads Remove from Group
Search IDs and namesFilters the tree by ID or display name. Cmd+F / Ctrl+F focuses it, Escape clears it, Down goes to the rows
All, Custom, SystemThe kind of attribute, each with its count
No usagesCustom attributes nothing in the project reads
Not in a groupCustom attributes in none of their type's groups: Business Manager's forms leave them out
FiltersEvery filter, with how many attributes each shows. The badge counts the filters that are on
ResetTakes off the filters, keeping the search and the kind
Count9 attributes, or 1 of 9 while a filter is on

Find attributes

The search keeps the path to each match, so colo shows Product › Looks › color. The Filters popup holds every filter in a grid, each with the number of attributes it shows

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows
SectionFilters
KindAll, Custom, System
StatusWith problems, No usages, Not in a group, No display name, No description
Object typesThe types of the file, such as Product or a custom object type
Attribute typesThe types by family: Text, Numbers, Choices, Dates, Media, Lists
FlagsLocalizable, Mandatory and the other flags, each Any, Yes or No

Find a filter narrows the popup and Reset all clears it. When nothing matches, the tree says what it looked for and offers Clear the filter

The tree

ColumnShows
NameThe type, group or attribute ID. A second block extending the same type reads Product (2). An attribute nothing reads is grey, and a problem draws a waved line under it
Display nameThe x-default display name
TypeThe attribute type and the flags that are on, such as Text localizable. A type row reads System object or Custom object type
UsagesHow many places in the project read the attribute, a click lists them. A type row counts its unused attributes

Under each type come its groups in file order, then Not in a group. Attributes a group lists but the file doesn't define, such as the system attribute name, are grey. The columns drop as the editor narrows: Display name first, then Type

Edit in the tree

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows
  • Double-click a display name or a type to edit it in place. F2 renames the ID. Changing the type of an attribute asks first, because an import fails on an instance that already has it
  • Drag attributes onto a group to add them, between members to reorder, or onto Not in a group to take them out. The tooltip says what the drop does: Add to Looks, Move to Shipping, Move here
  • Right-click for Add Attribute…, Rename, Duplicate…, Groups, Remove from Group, Delete, Move Up, Move Down, Show in XML, Show Usages, Copy ID and Copy Script Access. A row the file has twice adds Go to Second Definition

Copy Script Access copies how code reads the attribute: product.custom.color for a product, Site.getCurrent().getCustomPreferenceValue('id') for a site preference, System.getPreferences().getCustom().id for an organization preference

Usages

The Usages column counts the places in the project that read each custom attribute, in scripts, ISML and controllers. Click the count, or press Cmd+Alt+F7 / Ctrl+Alt+F7 on the row, to list them with the line that reads it, such as product.custom.color. Show Usages is grey on an attribute nothing reads

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

Delete asks first and says what reads the attribute: Delete packSize from Product? Nothing in the project reads it. An import removes no attribute from an instance, so delete it in Business Manager too

Add an attribute

Add › Attribute… opens New Attribute. Pick the object type and the group, or New group…, then type the ID: the name follows it in words, so careInstructions gives Care instructions

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

The gallery on the left lists the 16 attribute types by family with a sample value. Search types, such as list or date finds them by name, family, sample or script type. The right side shows the type's settings and a live preview: the Business Manager field, notes such as A value per locale, and the lines a script reads it with. An enum offers Add example values. Add Attribute writes the whole definition as one step

TypeSampleScripts read
StringMidnight BlueString
TextHand wash cold. Dry flatString
HTML<p>Runs <b>small</b></p>dw.content.MarkupText
Email[email protected]String
Password••••••••String, stored encrypted
Integer12Number
Number19.99Number
BooleanYesBoolean
Enum of StringsCottondw.value.EnumValue
Enum of Integers24 monthsdw.value.EnumValue
Date2026-10-18Date
Date + Time2026-10-18 09:30Date
Imageimages/badges/new.pngdw.content.MediaFile
Set of Stringssummer, linenString[]
Set of Integers38, 40, 42Number[]
Set of Numbers1.5, 2.25Number[]

The other Add items ask for less: New Attribute Group (ID and display name), Extend System Object Type (a system type such as Profile) and New Custom Object Type (ID, display name, key attribute and type, data scope, replication, retention in days)

Properties

Click a row and the panel under the tree shows its properties, growing if it is folded or small. Its header has the usage count and Show in XML. The sections flow into columns when there is room

SectionSettings
GeneralID, Name, Description, Type and the groups as chips with Add to Group
FlagsLocalizable, Site-specific, Mandatory, Visible, Externally managed, Order required, Externally defined
ValuesFor an enum: Value, Name and Default, then Select multiple and Immutable
ValueThe default, then the settings Business Manager offers for the type, such as Min length, Field length, Regular expression or Unit

A field writes its value on Enter or when you leave it, and Escape restores the file's value. A custom object type shows its storage settings, and several selected attributes share their flags and groups, with New Group… to add a group with them

Groups, types and keys

A group shows its members as a table of Attribute, Name, Type and Usages, in the order Business Manager lists them. Its Add offers New Attribute…, Existing Attributes… and System Attribute…, its arrows move the selected member, and its sort orders the group Sort by ID or Sort by Name

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

A custom object type shows its Storage: Data scope (Site or Organization), Replication and Retention in days, empty keeps the objects. Its key, such as configId, String, links to the key attribute, whose form has the ID and type

Translations

The language button beside Name, Description and Unit opens the translations, such as Name Translations. Add lists the project's locales with the sites that use them, and Other Locale… takes any locale such as de or fr-FR. A badge on the button marks a field that has translations

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

XML and problems

The panel's XML tab is the IDE's editor on the same file. Selecting a row marks its whole element in the XML, and clicking in the XML selects the row there. The problems count in the toolbar opens it with the Problems list, beside the XML when there is room and under it when not

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows
ProblemExample
A repeated definitionProduct defines careInstructions more than once, with First definition and Second definition
A repeated group or listingThe group Looks lists color more than once
A wrong defaultThe default value of isGiftWrappable is no boolean
Schema and syntax errorsChecked against the bundled metadata.xsd

Previous Problem and Next Problem move through them and the places of a duplicate. Go to XML shows the selected problem in the XML, and Delete This Definition (or Group, Listing) deletes the selected place of a duplicate, the others stay

Each place of a duplicate has an arrow in the XML gutter. Its tooltip reads Product defines careInstructions more than once: go to the second definition, line 76, and a click goes there. Metadata problems are fixed in the XML: they have no Alt+Enter fix

Split view

The split button in the panel's header shows the properties and the XML together: side by side when the panel is 640 px wide or more, the properties over the XML when it is narrower. Selecting a row fills the form and marks its element in the XML, and clicking in the XML selects that row. The button again, or a tab, shows one at a time

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

Clicking the shown tab, or the chevron, folds the panel down to its tabs, and the chevron opens it again under the tree. The editor remembers the layout

Narrow editors

The editor fits beside tool windows such as B2C Metadata. The search narrows first, then the toolbar folds the count, Reset, Not in a group, No usages, the tree buttons and the kind into Filters, whose badge still counts them. The columns drop, and the properties and the XML stack under each other

The Metadata Editor opens site archive metadata as a tree of types, groups and attributes, with a Text tab that keeps the caret on the selected row. Search and filter the attributes, edit display names in place, drag attributes into groups, add one from a gallery of types with a live preview, edit its properties and translations, list where code reads it, and see the properties and the XML side by side, where problems such as a repeated definition are listed and marked. The toolbar and the columns fold as the editor narrows

Services

The scopes are Services, Profiles and Credentials, and the quick pills Not linked (profiles and credentials no service of the file uses) and Broken links (services whose profile or credential isn't in the file). The columns are Type, Profile, Credential and Enabled

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

The form of a service has three sections:

  • Service: Type, Log prefix, and the Enabled, Mock mode, Communication log and Force production log flags
  • Profile: the profile with Go to and Copy to New Profile, its timeout, rate limit and circuit breaker with Ignore 5xx responses. A shared profile reads Shared by 2 services; changes apply to all of them
  • Credential: URL, User and Password. An encrypted password reads Encrypted by common.export with only Replace…, and a plain text one also has Reveal and Copy

Add › Service… asks for the ID (Such as int_payments.http.authorize: the cartridge, the protocol, the API), the type, the profile and the credential. Right-click a service for Copy createService Call, Select Services Using This, Create Missing Profile or Create Missing Credential. Group by Prefix puts services, profiles and credentials under the first segment of their ID when two share it

The checks include FTP services are deprecated: use SFTP, The password is in plain text in the file, Production logging is on: the service's filterLogMessage must hide secrets and unknown service types

Profiles and credentials

A service whose profile isn't in the file offers Create Missing Profile in its form. A profile or credential lists its services under Used by, and right-click › Select Services Using This selects them in the tree

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Jobs

The scopes are Organization and Sites, and the quick pills Scheduled and Custom steps. Each job holds its flows, splits and steps, each step with its type. The Schedule column reads Every 1h from 02:00, Mon, Fri, Manual, or No trigger in red: the import rejects a job without triggers

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Add › Job… writes a job with one flow and its first step. Step…, Flow… and Job Parameter… add to the selected job, after the selected row, and Split… adds a split that runs a flow template on every storefront site

The step form lists the step type's parameters, required ones with *. Add N Missing Parameters fills in what the type requires, Remove Undeclared Parameters drops what it doesn't declare, Go to Step Type opens its steptypes.json and Go to Module the script an ExecuteScriptModule step runs. Bind to Job Parameter… links a step parameter to a job parameter, Unbind undoes it. The job form holds the description, Runs in, the parameters, the Schedule, Notifications and the steps. Runs is Manual, Once or Recurring: once has a date and time, recurring an interval, dates, a time and weekdays, and On exit says what a failed run does. Notifications has Runs long after, Mail on retry and Mail on exit

The checks include missing triggers (fix Add Triggers), ExecuteScriptModule and ExecutePipeline (declare a custom step type in steptypes.json instead), a missing required parameter, an unknown step type and a step scope that doesn't fit the job

Steps and triggers

Add › Step… opens Add Step, the step types with their purpose, custom ones first. Type to narrow the list and press Enter to add the step after the selected one. Pick Once in Runs to give a manual job a trigger, then tick Enabled

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Site preferences

The scopes are Custom and Standard, grouped by attribute group, and the quick pill Differs shows preferences whose instance types don't agree. The columns are All instances, Development, Staging and Production. = means the same as Development, and a tier without its own value shows the All instances value in grey

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

The Values section has a field per instance type, with Copy Development to Staging and Production, Move to All Instances, Clear in X and Compare Tiers…, a three-way diff you can edit. Go to Definition opens the attribute in the metadata, and Create Definition… opens the New Attribute dialog of Metadata for a preference no metadata defines. Copy Script copies dw.system.Site.getCurrent().getCustomPreferenceValue('apiTimeout')

Add › Preference Value… adds a value of a SitePreferences attribute, Standard Preference… a platform preference by its ID. An enum value written as its display name gets Replace Display Names with Values. Turn off Group by Attribute Group for one list by ID

Standard and definitions

The Standard scope lists platform preferences, such as SiteCurrency, with no Type column. A preference no metadata defines reads Not in metadata in red, and the import skips its value. Create Definition… opens New Attribute with the preference's ID, a name and the type its value suggests

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Custom objects

There is a scope per custom object type in the file, and the quick pills Empty mandatory and Not in type. With a type picked, each attribute of the type is a column you can edit in place. An attribute the type doesn't define reads (not in type)

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

The form shows the type, site or organization scoped, the key with its checks, Go to Type Definition and Copy Script, which copies dw.object.CustomObjectMgr.getCustomObject('PaymentCountry', 'AT'). Attributes follow by group, secrets under Credentials. Select several objects to edit their shared values, Mixed where they differ

Add › Object of Type… adds an object of one of the project's custom types with its mandatory attributes, and Add Attribute… sets an attribute the object has no value of yet

Paste rows from a spreadsheet with Cmd+V / Ctrl+V: the headers name the attributes, and one names the key. The pasted rows are selected

Objects and attributes

Add › PaymentCountry Object… asks for the key of an object of the picked type. A value of an attribute the type doesn't define shows under Not in the type definition, with Define legacyCode… to add it to the type and Remove legacyCode to drop it

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Content slots

The scopes are Global, Category and Folder, and the quick pills Disabled and Problems. A slot holds its configurations, and its contexts when it has several. Tick On and Default right in the tree, pick the template from its cell, and set the content, callout and targeting in the form. The Slots Editor page covers the content kinds, the date picker, adding configurations, campaign assignments and every check

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

Content libraries

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

The scopes are Assets (folders and classic content assets), Pages (Page Designer pages with their regions and components) and Folders, and the quick pills Offline and Problems. A region reads region, 2 of 4, red over its limit. A component shows its type, in red when no cartridge defines it: Create Page Designer Type writes its .json, .js and .isml. The Library Editor page covers the HTML body, locales, Compare Locales…, online per site, component data and every check

Code column

The Metadata Editor opens services, jobs, site preferences, custom objects, content slots and content libraries in its design view. Search, narrow by scope or a quick pill, open the Filters popup, jump from the problems count to the XML and fix it with Alt+Enter, see the properties and the XML side by side, hide columns and turn grouping off, then edit each kind in its form: copy a createService call, create a missing profile, add and schedule job steps, copy and move a preference across tiers, define a preference, paste and add custom objects, make a slot configuration the default, write a missing Page Designer type and find the code that uses a row

With a license, services, site preferences, custom objects, slots and libraries have a Code column, Places in scripts and templates, and the statuses Used in code and Unused in code. In slots and libraries Unused in code becomes the first quick pill. The form's Code section lists the places with links to each file and line, and Show All in Find. Find Usages in Code (Alt+F7) lists them in the Find tool window. It is a text search: comments count, and an ID built at run time isn't found

On the Text tab, each ID that code names shows its usages at the end of its line, such as 3 usages. Click the count to list the scripts, templates and site data that name the ID, with files outside your cartridges by their path in the project, such as sites/AcmeUS/services.xml

IDs with usagesCounted in
Services, credentials, site preferences, payment methods and processorsEvery place code quotes the ID or passes a constant that holds it, such as constants.REFUND_SERVICE from a module the script requires, and the site data that names it. A payment processor also counts the app.payment.processor.<id> hook
Content assets, folders, slot configurations, custom objects and their types, customer groups, campaigns, promotions, sorting rules, catalogs, categories, price books, inventory lists, coupons and storesThe Script API calls that take the ID, and the site data that names it

Cmd+Click / Ctrl+Click on an ID that names another element opens it, and completion lists the IDs of the project:

  • A service's profile and credential, and a job's site
  • A slot configuration's content asset, category, product, customer group and campaign
  • A campaign's customer groups, coupons and store groups, and promotion assignments
  • Catalog parents, category assignments and product links, sorting rules, and a store's inventory list and price book
  • Library parents, folder and content links, page meta tag rules and A/B test segments
  • Payment processors, and a system attribute an attribute group lists, which also goes to its Script API property

The same file comes first, then its folder, then the project. A place in XML opens on the Text tab when you clicked from there. The usages show in Settings › Editor › Inlay Hints › Code vision as SFCC Site Archives. The usages and the links need a license

Content links link to the project: $url('Page-Show','cid','shipping-info')$, $httpUrl()$, $httpsUrl()$, $include()$ and images/hero.jpg?$staticlink$. They work in library and slot HTML, in other site archive XML such as preference values, in the design tab's text areas, and in attribute values of ISML templates and HTML files, such as href="$url('Search-Show','cgid','mens')$"

In the HTML of a slot or a content asset, $ lists the link functions with their documentation, and the call lists the routes of your cartridges, then the keys the route reads and the content assets of your site archives. The route and the ID that resolve get the thin underline of a reference
  • Completion lists routes with their cartridges, the keys of the route (cid, fdid, cgid, pid, and for search q, pmin, pmax, srule, prefn1, prefv1, start, sz), and the IDs with where they come from. In HTML and site archive XML it opens as you type $, ( or a quote
  • Cmd+Click / Ctrl+Click opens the route, the content asset, the folder, the category, the product or the static file, and quick documentation (F1 / Ctrl+Q) explains a link function or key
  • Links count as uses of their route in the route lens, also in site archive XML outside your cartridges
  • The IDE's HTML checks for unknown targets, image sizes and plain http URLs stay quiet on a link

The Content link problems inspection flags:

ProblemFix
Quote is not closedClose the quote
$url()$ is not closed with ')$'Close with ')$'
$url()$ has no routeNone
Cannot resolve route 'Page-Shw', Cannot resolve content asset 'bf-term'Change to '…' with the closest ID
Link arguments are written in quotesQuote the argument
Commas are not supported in link argumentsNone
Parameter 'cid' has no valueNone

Links need a license, their colours don't. Settings › Editor › Color Scheme › ISML has Content links › $url( )$, ?$staticlink$ and Parameter key

License

The Metadata Editor needs a license, see Purchase & License. The startup grace period doesn't count. Without one the editor shows the file read only, and the Text tab still edits the XML. Usage counts, the Code column, Code links, Unused in code and the Structure view need a license too

Troubleshooting

ProblemFix
No editor tab, such as Metadata EditorCheck the root element and namespace of the file
The editor is read onlyRead its banner: fix the XML, add a license, or Edit Anyway in a migration folder
The XML has no metadata rootUse Fix it in the XML, then check the root element
Usages or Code counts show …They are counted after indexing finishes, and with a license
An attribute is grey but is usedA read the plugin can't type, such as custom[name] with a variable, isn't counted. Type the value with JSDoc
A Page Designer component is redNo cartridge defines its type: Create Page Designer Type writes one

On this page