Page Designer: Dynamic Pages – Optional Subcategories

A year after Salesforce released Page Designer, many of the needed features were added. One of these features was called “Dynamic Pages.”

This feature allowed Page Designer pages to understand their context: a category, or a product. These pages allow for dynamic components that show product or category information without much manual labor.

Now, as with many things, no good deed comes unpunished. There is a “problem” with the dynamic category option. When you select a top-level category, it selects all subcategories as well. Whether you want this to happen or not.

Maybe a use-case to explain this. Your catalog structure is as follows:

  • Pants
    • Shorts
    • Jeans
      • Blue Jeans
      • Black Jeans

You decide to create a category landing page for Jeans to highlight all options.

Page Designer is “the” tool to do this. You assign a page to “Jeans” and add all components to highlight some products and content.

You are confident with what you have done and visit the page in the storefront (https://my-brand.com/pants/jeans), and it all looks perfect.

The changes get replicated to production, and the next day you start getting calls from customers who can no longer visit the Blue and Black jeans categories. All they see is your category landing page (possibly linking to those subcategories), seemingly putting them in an infinite loop of clicking.

This happened because your landing page also got assigned automatically to the Blue and Black Jeans subcategories, and there is no way to turn this off (besides custom development).

A screenshot of page designer where a user selects a category to assign the page to.
Page Designer - Category Selection

Do you also want this automatic selection removed and get more control of your assignments?