Content Management System
Within your Buddi admin area there is a section called “Content Management”. Within this section you can create pages and content to be used on your website. The reason for this module is to allow easy editing of content that doesn’t require a developer to update it for the client.
getCMSList()
The method returns the current store CMS pages.
Example:
Buddi.getCMSList();
Caching: 5 mins
Events: cms-list:loaded, cms-list:loading-error
Returns:
[{
id: 1,
category: "personal",
images_count: 5,
last_modified_at: "2025-10-31T14:35:55.000000Z",
slug: "index",
title: "Index"
}, ...]
getCMS(id)
The method returns the CMS page by the given ID.
Params: id
Example:
Buddi.getCMS(6);
Caching: 5 mins
Events: cms-page:loaded, cms-page:loading-error
Returns:
{
title: "Index",
content: "<p>Test</p>",
last_modified_at: "2025-10-31T14:35:55.000000Z",
images: [{
id: 5,
original_name: "test.jpg",
public_path: "https://cannabis.test/seo-menu/pages/6EdnOVowrjFRCxxK5EdknsYJBehKYyL7nwrSSqQ8.png"
}, ...]
}