Render Content

While the actual rendering of the content is not within the scope of this API, it can be used to extract the data used to render the contents.

const pageResult = await api
  .findPage({
    locale: 'de_DE',
    id: `Content Page`,
    type: 'content',
  });

const sections = EcomApi.extractSlotSections(
  pageResult, // (1)
  'content'   // (2)
);
  1. Result of findPage or setPage
  2. Name of the slot within the page template in FirstSpirit

The sections variable will be an array containing all sections within the given slot. They can then be rendered based on their type.


Last update: May 19, 2025