Content Assets for Developers

In Salesforce B2C Commerce, a content asset is a database object with attributes. You can extend the object with its own attributes using the metadata system. 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 in a variety of ways, such as described in the following table:

   
Import and export and export

You can import the content assets you use in your application, and you can export the content 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 content 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, you should consider best practices related to potential security ramifications.

Related Links

Content Asset Best Practices

Content Asset APIs

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. By continuing to use this site you are giving us your consent to do this.