Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
feat: Allow excluding a page from marketplace (#3019)
Oleg Isonena45958f90ec8
diff --git a/apps/builder/app/builder/features/sidebar-left/panels/marketplace/templates.tsx b/apps/builder/app/builder/features/sidebar-left/panels/marketplace/templates.tsxindex fd18e1c438..bb944ef99e 100644--- a/apps/builder/app/builder/features/sidebar-left/panels/marketplace/templates.tsx+++ b/apps/builder/app/builder/features/sidebar-left/panels/marketplace/templates.tsx@@ -42,6 +42,15 @@ const getTemplatesDataByCategory = (data?: WebstudioData) => {const pages = [data.pages.homePage, ...data.pages.pages];for (const page of pages) {+ const excludePageFromSearch = computeExpression(+ page.meta.excludePageFromSearch || "false",+ variableValues+ );+ // We allow user to hide the page in the marketplace.+ if (excludePageFromSearch) {+ continue;+ }+let category = page.meta.custom?.find(({ property }) => property === marketplaceMeta.category)?.content;