Site.pro
  • AI Website Builder
    • AI Website Builder
    • Prices
    • Online Stores
    • Collaboration
    • Website Import
    • Plugins
    • Website Builder
    • Templates
    • For Design Studios
    • Useful Links
    • Affiliate Program
    • We Build for You
    • Examples
    • Languages
  • Domains
    • Register Domain Name
    • Migrate Domains
    • For Domain Investors
    • Domain Zones
    • Domainity
    • FAQ: Domains
    • Popular Domain Zones
    • .co
    • .com
    • .net
    • .org
    • .us
  • Email
  • Accounting Software
    • Accounting Software
    • Modules
    • Prices
    • Integrations, API
    • Accounting companies (373)
    • Software integrators (52)
    • Affiliate Partners
    • Useful Links
    • Business Types
    • Use Cases
    • Accounting companies
    • Sole Proprietor
    • Invoicing
    • Farmer
    • E-commerce
  • For Resellers
    • Prices
    • White Label
    • Revenue Share
    • Panels
    • How it Works
    • Marketing Materials
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • Knowledge Base
    • Tutorials
    • Blog
    • Growth Hacking
    • For Hostings
    • For Education
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
  • AI Website Builder
    • AI Website BuilderAI creates websites for you
    • PricesAdvanced Features
    • Online StoresBuild online stores
    • CollaborationCo-create websites live
    • Website ImportImport Any Website
    • PluginsBuilder plugin and functions
    • Website BuilderKey Features
    • Templates200+ Awesome Templates
    • For Design StudiosBenefits for Design Studios
    • Useful Links
    • Affiliate Program
    • We Build for You
    • Examples
    • Languages
  • Domains
    • Register Domain NameDomain registration, parking, transfer
    • Migrate DomainsTransfer. Connect. Renew
    • For Domain InvestorsDiscount on all domains
    • Domain ZonesBuy New Domain Name
    • DomainityDomain usage by country
    • FAQ: DomainsFind Answer
    • Popular Domain Zones
    • .co
    • .com
    • .net
    • .org
    • .us
  • Email
  • Accounting Software
    • Accounting SoftwareCloud based ERP
    • ModulesMain accounting software modules
    • Prices30 days free trial
    • Integrations, APIIntegration with external systems
    • Accounting companies (373)Choose your partner for accounting
    • Software integrators (52)Pick your integrations partner
    • Affiliate PartnersPartners and Affiliate program
    • Useful LinksCalculators and Calendars
    • Business TypesUse Cases
    • Use Cases
    • Accounting companies
    • Sole Proprietor
    • Invoicing
    • Farmer
    • E-commerce
  • For ResellersWhite Label
    • PricesRevenue Share. White Label
    • White LabelCustomise Builder
    • Revenue ShareEarn 50% from each upgrade
    • PanelsOne product for all platforms
    • How it WorksCloud or On-Premises
    • Marketing MaterialsVideo. Mockups. Blocks
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • Knowledge BaseFAQ: Builder, Accounting
    • TutorialsDownload for free
    • BlogSite.pro Blog
    • Growth HackingBoost your sales
    • For HostingsTips on marketing
    • For EducationTraining. Tutorials
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
  • Register
    By registering, you accept our Terms of Service
  • Log in

    Log in

    New user? Create account
    Forgot password?
  • $
  • English
Server Requirements
  • Published websites
  • Site.pro IPs
Builder installation / update
On-Premises
  • Server Requirements
  • Installation
  • CRON
  • Update
  • Migration to version v4
  • Collaboration Service
  • Extra configuration
  • Manual update
  • Changing PHP version
  • Support
Plugin installation
  • Hosting Panel
    • cPanel
    • DirectAdmin
    • Plesk
    • Sentora/ZPanel
    • ISPmanager
    • InterWorx
    • Vesta
    • Hosting Controller
    • CentOS Web Panel
    • Hestia
    • LiveConfig
    • Webuzo
    • Custom hosting (API)
  • Billing Panel
    • WHMCS
    • Blesta
    • Upmind
    • Custom billing (API)
API documentation
  • Builder
    • Create session (SSO)
    • Remove existing session
    • Create website backup
    • Restore website backup
  • Templates
    • List template categories
    • List template category tags
    • List templates
    • Get page types available in templates
  • Import
    • Import website
    • Get website import status
    • Import website block
    • Get website block import status
    • Check if imported website is owned by user
  • Websites
    • Create website
    • Modify website
    • Rename website
    • Publish website
    • Edit website pages
    • Edit website settings
    • Delete website
    • Get website template
    • Get website pages
    • Get website variables
    • Get template variables
    • Get website settings
    • Add pages to website
    • Duplicate pages in website
    • Remove pages from website
  • Website Blocks
    • Create empty website
    • Modify website
    • Inspect website
    • Add empty page
    • Modify page
    • Remove page
    • Inspect page
    • Inspect composition
    • Modification descriptor structure by element type
    • Add blocks from compositions
    • Remove blocks
    • Move blocks
    • Modify blocks
    • Inspect block
  • Licenses
    • Get list of published websites
    • Get statistics of publications/openings
    • Block/unblock published website
    • Controlling IP list
    • Read/add/delete hosting plans
  • Integration with your system
    • Allow/disallow domain in builder
    • Check if domains are allowed in builder
  • FAQ
    • Get posts
    • Get categories
Add-ons documentation
  • For Website
    • Public demo URL
    • Editing plans
    • User registration from public demo
    • Website import
    • Generate with AI
  • For Builder
    • Adding custom templates
    • Adding custom builder plugins
    • Scripts
For developers
  • Programming reference
  • Directory structure
  • Meta information (main.json)
  • Frontend logic (main.js)
  • Element template (main.html)
  • Backend logic (main.php)
  • Plugin testing
  • Custom element plugin
  • E-commerce plugin
  • Overriding UI
  • Other examples
Change Log
For developers

Meta information (main.json) Cloud On-Premises

This file must contain a single JavaScript object with following structure:

  • String type - (optional) Type of plugin. If present must have one of the values:
    • "gateway" - plugin that adds a new payment option to store cart and/or payment gateway button for immediate purchases;
    • "map" - plugin that adds a new map type;
    • "video" - plugin that adds a new video player type;
    • "ui" - plugin that replaces default Site.pro builder UI with its own (since v3.7.301);
    • "generic" - any other element that does not have any of the above mentioned functionality (used by default).
  • Boolean requireStoreModule - (optional) Must be set to true if plugin uses store module functionality. This also forces store module to be published along with plugin element even if website has no store or cart element on any page. Defaults to false.
  • Boolean requireBillingInfo - (optional) Must be set to true if payment gateway added by plugin requires billing information to be entered by customer. Defaults to false.
  • Boolean fixedHeight - (optional) When set to true custom element added by plugin will have a fixed height when publishing with auto-layout enabled. Defaults to false.
  • Array of String requireJsLibs - (optional) A list of JavaScript libraries from store module that must be included in published website.
  • Array of String loadModules - (optional) A list of modules that must be loaded (code executed) when plugin is loaded. Typically this option is used when plugin is written entirely in TypeScript language, which encapsulates all transpiled code into modules. Internally builder calls a JavaScript require function with the list of given modules to execute their code. This array may be empty (or omitted) if you have no modules declared in main.js or main.min.js. This option is available since v3.7.301.
  • Boolean admin - (optional) Set this to true if plugin should load only when builder is opened in administration (template creation) mode. This can be used to prevent plugin from getting loaded into production environment while it is being developed. Defaults to false.

Example of main.json

{
	"type": "gateway",
	"requireStoreModule": true,
	"requireBillingInfo": true
}
© Site.pro 2011. Website Builder. United States.
Contact SalesTerms of ServicePrivacy Policy