Content Assets for Developers

⚠️ The annual cost of maintaining the server where this website is hosted, the domain, and keeping it up-to-date is approximately €3,000 per year. Help us with a small donation to cover these expenses. Support Now!

0 / 10000

You can extend a content asset with its own attributes using the metadata system.

In Salesforce B2C Commerce, a content asset is a database object with attributes. The most common usage for content assets is to contain HTML that appears on the storefront as a standalone page or embedded within another page. Content assets are typically used for information that changes infrequently such as an about us page or apparel sizing tables. These HTML blocks can reference images that are stored in a special area of the file system for content-related static files.

You can customize how content assets behave in B2C Commerce. The following describes customization options.

   
Import and export and export

You can import the content assets you use in your application, and you can export the content of one site into another site. You can also export the content assets of a private library into a shared library.

Attributes and system objects

You can use attributes and system objects to define storefront content.

The Content system object, for example, supports site-specific attributes. Several existing attributes, including the onlineFlag attribute, are site-specific. You can use this feature to specify content differences between sites that share the same content assets. For example, if the contents for two brands reside in the same shared library, you can specify the onlingFlag attribute so that the brand-specific content only appears on the site for that brand.

Other site-specific attributes are: searchableFlag, siteMapChangeFrequency, siteMapPriority, and siteMapIncluded.

Content links

When you create content assets, you can add links to other content assets, search results, or product detail pages. B2C Commerce provides a special syntax to define these links. You can also use content links to link to external web sites or other B2C Commerce sites.

Content slots

Use content slots to show targeted content on predefined browser areas.

Content APIs You can use the B2C Commerce APIs to customize how your storefront application handles content assets.

Before you begin, consider the best practices related to potential security ramifications.