Landing Pages Reference

Complete inventory of the landing page system: pages, builder components, mini-site components, co-branded workflow, backend functions, related entities, summaries, and copyable code references.

System Flow Summary

Create

TemplateLibraryPanel or MiniSite TemplateSelector starts a page from a locked preset or co-branded draft.

Edit

LandingPageBuilder combines LPToolbar, LPCanvas, and LPRightPanel for visual editing.

Publish

LandingPage.status changes to Published and PublicLandingPage serves /landing/:slug.

Capture

Visitor submits form; LeadSubmission and Contact records are created/updated.

Route

Assigned LO or routing rules decide who receives the lead.

Track

LandingPage view_count, lead_count, conversion_rate, and campaign source track performance.

Main Pages

4
LandingPages

pages/LandingPages

page

Main Growth Suite landing page manager. Shows template library, existing pages, publish/pause controls, duplicate/delete, URL copy, preview, and links into the editor.

What it does:

Lists LandingPage recordsCreates/duplicates/deletes pagesPublishes and pauses pagesHosts the locked template library panel
LandingPageBuilder

pages/LandingPageBuilder

page

Full-screen visual landing page editor. Loads templates or existing pages, renders the canvas, right-side editor, toolbar, preview language selector, draft save, publish, and super-admin template editing.

What it does:

Loads existing LandingPage by idLoads locked template presets by template keySaves draft and published pagesAuto-translates enabled languagesOpens preview in public preview mode
PublicLandingPage

pages/PublicLandingPage

public page

Public visitor-facing page at /landing/:slug and /landing/preview. Renders published pages, handles preview sessions, language switching, lead capture, contact creation, routing, notifications, and analytics.

What it does:

Fetches published LandingPage by slugRenders builder_v2 and legacy templatesCreates LeadSubmission recordsCreates/updates Contact recordsApplies routing rules and notifications
MiniSiteStudio

pages/MiniSiteStudio

page

Mini-site dashboard that also manages landing pages, blog posts, page analytics, domain settings, and template-based page creation.

What it does:

Shows mini-site pagesPublishes/duplicates/deletes LandingPage recordsShows aggregate views/leads/conversionOpens mini-site template selector

Builder Components

5
TemplateLibraryPanel

components/lpbuilder/TemplateLibraryPanel

component

Locked product template browser used from Landing Pages. Groups templates by campaign lane and includes the Agent + LO co-branded template card.

What it does:

Renders TEMPLATE_GROUPSLaunches templates into LandingPageBuilderShows super-admin Edit Template buttonInjects co-branded landing page template card
LPCanvas

components/lpbuilder/LPCanvas

component

Live editor canvas. Renders the current pageState visually, supports device width previews, localized text overlay, hero, form, top/bottom inserts, contact cards, logo, and footer.

What it does:

Shows live visual previewHighlights selected sectionsSwitches desktop/tablet/mobile widthRenders co-branded contact cardsApplies localized content overlays
LPRightPanel

components/lpbuilder/LPRightPanel

component

Right-side editor for background, content, form fields, style, co-branded cards, company branding, footer, language settings, page info, SEO, and lead notification settings.

What it does:

Background image/color/gradient editorHero content editorLead form editorLO and agent branding controlsLanguage and SEO settings
LPToolbar

components/lpbuilder/LPToolbar

component

Top toolbar for the builder. Handles back navigation, inline page name editing, device preview toggle, preview, save draft, publish, and Save Template mode.

What it does:

Back buttonPage name editDesktop/tablet/mobile togglePreview buttonSave Draft and Publish buttons
LanguageSelector

components/lpbuilder/LanguageSelector

component

Public page language selector used by published/preview landing pages so visitors can switch enabled languages.

What it does:

Shows enabled languagesSwitches active public languageWorks with localizedContent cache

Template + Preview Utilities

3
lpDefaults

components/lpbuilder/lpDefaults

config

Central landing page design system and template configuration. Defines default page state, fonts, gradients, locked templates, template groups, language list, and AI image prompts.

What it does:

DEFAULT_PAGE_STATELOCKED_TEMPLATE_PRESETSTEMPLATE_GROUPSLANDING_PAGE_LANGUAGESAI image prompts
previewUtils

components/lpbuilder/previewUtils

utility

Shared rendering utilities for editor and public landing pages. Controls background rendering, image focus behavior, logo white overlay, and enabled preview languages.

What it does:

Background CSS builderMobile image focusLogo white overlay filterEnabled language resolver
detectFaceFocus

components/lpbuilder/detectFaceFocus

utility

Image helper used during background uploads to detect face/focal positioning for better mobile and tablet cropping.

What it does:

Analyzes uploaded background imageSets bgImageFocusX/YImproves responsive crop behavior

Co-Branded Landing Pages

3
CoBrandedLandingPageTemplateCard

components/growth/CoBrandedLandingPageTemplateCard

component

Template card for the Agent + LO co-branded page. Selects the agent/LO pair, creates a Draft LandingPage, and opens it in LandingPageBuilder before publishing.

What it does:

Select agent partnerBuild co-branded page stateCreate LandingPage draftOpen editor with agent_cobrand lock behavior
CoBrandedLandingPageCreator

components/growth/CoBrandedLandingPageCreator

component

Expanded co-branded landing page creator with context and optional video URL inputs. Creates a co-branded page and marketing asset.

What it does:

Select LO/agentCollect page contextOptional video URLCreate LandingPage and AgentMarketingAsset
coBrandingUtils

components/growth/coBrandingUtils

utility

Shared co-branding helper that builds the full builder_state for Agent + LO landing pages, including names, headshots, company branding, contact cards, and campaign metadata.

What it does:

getProfilePhoto helperslugify helperisGrowthSuiteActive helperbuildCoBrandedPageState

Mini-Site Components

3
MiniSitePageCard

components/minisite/MiniSitePageCard

component

Card used in Mini-Site Studio for each landing page with edit, publish, duplicate, delete, live view, copy URL, and blog actions.

What it does:

Page status displayViews/leads statsEdit/live/copy actionsPublish toggle
MiniSite TemplateSelector

components/minisite/TemplateSelector

component

Mini-site template picker dialog used by MiniSiteStudio to start new page creation from a template.

What it does:

Shows mini-site templatesLaunches LandingPageBuilderCloses after selection
DomainSettingsPanel

components/minisite/DomainSettingsPanel

component

Domain and URL settings panel for mini-sites and landing pages. Helps manage public URL presentation and custom domain settings.

What it does:

Domain settings UIPage URL managementPublic URL guidance

Backend Functions + Automation

5
translatePageContent

functions/translatePageContent

backend function

AI translation helper for landing page content. Supports filling missing translated content for multilingual pages.

What it does:

Translate landing page contentReturn structured translated copySupport cached localizedContent
scrubAllLandingPageTranslations

functions/scrubAllLandingPageTranslations

backend function

Super-admin bulk tool that scrubs landing pages and fills missing language translations across the landing page library.

What it does:

Find missing translationsTranslate in bulkUpdate LandingPage builder_state.localizedContent
manageLandingPageUrls

functions/manageLandingPageUrls

backend function

URL management function for landing pages, including slug management and page URL operations.

What it does:

Manage slugsHandle landing page URL recordsSupport Growth Suite URL workflows
leadSubmissionToOpportunity

functions/leadSubmissionToOpportunity

backend function

Converts captured landing page leads into CRM opportunities when used by lead routing/conversion workflows.

What it does:

Read LeadSubmissionCreate/link ContactCreate OpportunityAssign to LO
repairLandingPageTranslations

functions/repairLandingPageTranslations

backend function

Maintenance helper for repairing malformed or incomplete landing page translation data.

What it does:

Inspect localizedContentRepair missing keysNormalize translated page state

Entities Used

3
LandingPage

entities/LandingPage.json

entity

Primary data model for saved landing pages. Stores page metadata, slug, status, builder_state, routing, co-branding, analytics, domain settings, and publishing metadata.

What it does:

Stores editor contentStores public page slugTracks views/leads/conversionStores builder_state and co_branding
LeadSubmission

entities/LeadSubmission.json

entity

Stores form submissions from public landing pages before and during conversion to CRM contacts/opportunities.

What it does:

Captured visitor dataLanding page attributionRouting statusAssigned user tracking
AgentMarketingAsset

entities/AgentMarketingAsset.json

entity

Stores agent portal marketing assets, including co-branded landing page assets created for agent partners.

What it does:

Agent-owned marketing recordLinked landing page URLLO/agent co-branding metadata