Skip to main content

Manage Content

Learning Objectives

After completing this unit, you’ll be able to:

  • Explain how private content libraries differ from shared content libraries.
  • Describe the choice you have for a content delivery network.
  • List the file types you can use as content within B2C Commerce libraries.
  • Explain how storefront search works with content assets.
  • List the ways you can build a content asset library.

What Are Content Assets?

Merchants like Cloud Kicks use content assets to showcase promotions and special sales that drive product interest. They also use them to provide non-product info such as customer support pages, policy statements, and size charts. B2C Commerce supports a wide variety of content assets, including HTML text, graphics, and video.

Content asset icons: video, graphics, text, audio

B2C Commerce physically stores content assets in two places: the B2C Commerce database and the storefront file system. Content such as HTML or text blocks are stored in the database. Files such as images, audio, and video are represented by an entry in the database just like HTML or text content and are stored in the file system. You can reference external files within content asset HTML, but the actual file must be in the file system. B2C Commerce doesn't provide a streaming video server. However, it does support video download and play capabilities.

Speaking of external files, you can use a content delivery network (CDN) for fast retrieval of static and dynamic content.

Private and Shared Libraries

B2C Commerce stores content in the database in a library/folder structure, with two main types of libraries: private and shared. That means Brandon can choose between a private library that was created when a site was created or a library that’s shared across multiple sites in an organization. A site can use its private library or a shared library, but not both. A site can't use another site's private library.

Another type of library is the site library. This is a configuration setting that directs B2C Commerce to a private or a shared library. A site always has a library assigned to it. If there’s only one library assigned to a site, you can't unassign it from that site. You can, however, move private library content into a shared library.

You can have a maximum of 200 shared libraries per instance. This limit doesn't apply to private content libraries.

Get Permissions

Brandon needs the right permissions to create and delete shared libraries or change their site assignment—but only on the staging and sandbox instances. He can’t do these things on a development or production instance. When he changes libraries on a staging instance, the admin must replicate the changes to a development or production instance.

Manage Shared Libraries

Libraries, library folders, and content assets are organized in a hierarchy. Brandon wants to create a new shared library, Library4, and use it to manage a new promotion’s content assets until he’s ready to assign it to a site.

Here’s how he does it.

  1. Open Business Manager.
  2. Select Administration > Sites > Content Libraries.
  3. Click New.
  4. Configure the shared library.
    • Select the language: Default
    • Enter the (non-modifiable) library ID: Library4
      Don’t use the same ID for a shared library and a site. This can cause unexpected errors.
    • Enter the library name: Library4 - Sports Team Jackets
    • Enter the description: Sports Team Jacket Promotion
    • Click Apply.
      Edit a library in Business Manager.
  5. In the Site Assignments section, click Add.
    This button only appears if it's possible to assign the library to one or more other sites.
  6. Select the sites you want to assign to the library and click OK.

Change Site Assignment

Brandon now has four content libraries and three sites, as shown in this table. Site1 and Site2 use private libraries, while Site3 uses the shared Library3. Brandon wants Site2 to use the shared Library3.

Library

Type

Site Assignment

Library1

Private

Site1

Library2

Private

Site2

Library3

Shared

Site3

Library4

Shared


To change the site assignment:

  1. Open Library3.
  2. Click Add in the Site Assignment section.
    This button only appears if it’s possible to assign the library to one or more other sites.
  3. Select Site2 and click OK.

Here are the results.

Library

Type

Site Assignment

Library1

Private

Site1

Library2

Private


Library3

Shared

Site2

Site3

Library4

Shared


Before reassigning libraries, Brandon considers his objectives so he doesn’t inadvertently remove content. He asks Linda Rosenberg, the admin, to move the content assets from the private Library2 to the shared Library3. She follows the instructions in the documentation.

Create a Folder

Meanwhile, Brandon is focused on his new promotion. He wants to create a folder structure that’s easy to maintain, including folder names like Promo Rules, Banners, and Graphics. All folders can contain content assets.

Here’s how he creates a folder within a library.

  1. Select site > Merchant Tools > Content > Libraries.
  2. Click a library link: Library4
  3. In the Library Folder section, click New.
    • Enter the name: Promo Rules
    • Enter the ID: promo-rules
    • Select Online.
    • Enter other details such as SEO, sitemap, and presentation settings.
    • Click Apply.
  4. Click the Content Attribute Groups tab, define content attributes for all assets bound to a library folder, for example, the logo attribute, since these are team jackets.
  5. Click the Search Refinements tab and specify search refinements.
  6. Click the Page Meta Tag Rules tab, where you can create and manage page meta tags.
  7. Click Back to List to return to the Library Folders page.
  8. To create subfolders:
    • Click the ID link: promo-rules
    • Click New in the Library Folders section.
    • Specify the new folder definition.
    • Click Apply.

Site-Specific Content

Brandon can use the sitemap settings to keep some of his content assets site-specific while using shared library content across his organization. For example, he wants certain brand-related data, such as sizing, only to appear on sites related to that brand. He does this by setting a content asset to Offline, Not Searchable, and Not included in the sitemap for the default site. Then he sets the asset to Online, Searchable, and Included in the sitemap, for specific sites. 

Manage Content Assets

You can create content assets that include text, images, and links via URLs. But you don’t have to create all your content within Business Manager. You can import image and zip files into your library by selecting Merchant Tools > Content > Import & Export. You can import folder structures and content through the same import module in XML file format. Brandon starts by creating a content asset.

Create a Content Asset

Like with product records, you lock a content asset for editing. The lock remains for 60 minutes. Here’s how to create a content asset.

  1. Select site > Merchant Tools > Content > Content Assets.
  2. Click New.
    • Select the language.
    • Enter the ID: team-jacket-countdown
    • Enter the name: Team Jacket Countdown
    • Select online and searchable: Yes
    • Enter the rendering template. This template determines where the content displays on the page.
    • Enter the custom CSS file that loads for the content. This file determines how the content displays on the page.
    • In the content body, enter the following.
      PROMOTION RULES
      We’re counting down for you! Submit your logo decal for incredible pre-season volume discounts on team jackets.
      5 weeks early, 30% off
      4 weeks early, 25% off
      3 weeks early, 20% off
  3. Click Apply.
  4. Click the HTML Editor link and edit text further.
    Edit content asset text in the HTML editor.
  5. Assign it to a folder.
    • Click the Folders tab.
    • Click New.
    • Select the promotion-rule-team-jackets folder.
    • Click Assign.
  6. To preview the content asset in the storefront, click the preview icon

Within the HTML editor, Brandon can embed links and graphics (emojis, too!) within text. He can customize the graphics via alt text, sizing, and page alignment.

Copy Content

Brand likes that he doesn’t have to create everything from scratch. Here’s how he copies content.

  1. Return to the library folder: Promo Rules
  2. Select one or more content assets that you want to copy.
  3. Click Copy.
  4. If you select one content asset, a field appears where you can enter the new content asset ID.
    • Enter the ID and click OK.
    • If you don't enter an ID, the ID is appended with -1, for example, about-us becomes about-us-1.
  5. If you select multiple content assets, they are automatically copied and each given an ID appended with -1.
  6. Click Apply.

B2C Commerce search handles content—in addition to products. B2C Commerce indexes content data in the site library, whether it's a private or a shared library. If a site uses a shared library, the data in the private library doesn’t appear in a search index. However, B2C Commerce considers site-specific attribute values for content assets when indexing them.

Content Delivery Network (CDN)

Salesforce B2C Commerce comes with an embedded CDN that serves content from a location close to the shopper using proxy servers. Contact Salesforce support if you want to enable the service.

You can also use your own CDN with the B2C Commerce embedded CDN to deliver static and dynamic content to your shoppers. Deploy your CDN (or a reserve proxy) in front of B2C Commerce to improve performance and security, or to provide extra functionality using your CDN.

Let’s Wrap It Up

In this unit, you learned how private content libraries differ from shared content libraries, and how you can create, import, and manage content assets in B2C Commerce. Next, take the final quiz and earn an amazing badge!

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities