Running WordPress on a separate domain alongside Perfex CRM splits customer databases, complicates single sign-on, and forces fragile webhook bridges for every new lead or order. Yet modifying Perfex CRM core controllers directly breaks future CRM updates immediately.
PolyCMS resolves both issues through a strictly isolated Perfex CRM module architecture that separates public content tables, frontend routing, themes, and sub-plugins cleanly from core CRM workflows.
Once you understand the module boundaries, see how content teams structure daily publishing in Managing Posts in PolyCMS.
| Architecture Layer | Design Isolation Pattern | Engineering Benefit |
|---|---|---|
| Module Directory | Self-contained inside modules/polycms/ | Zero patches to Perfex core files; clean upgrades |
| Database Schema | Dedicated prefixed tblpolycms_* tables | CRM leads, invoices, and tickets stay untouched |
| Frontend Router | Public slug resolver behind CRM route guards | Coexists safely with /admin and /clients |
| Extensibility Bus | Action hooks, data filters, and shortcodes | Themes and sub-plugins extend behavior cleanly |
| E-Commerce Sync | Shared native database context with PolyStore | Zero API latency for product and order records |
1. Module Isolation, Prefixed Tables, and Core Safety
PolyCMS installs inside Perfex CRM’s modules/polycms/ directory with dedicated controllers, models, and migrations. All content, menus, widgets, and theme options sit in prefixed tables so Perfex CRM updates never collide with CMS schemas.
- Place custom PHP extensions in a child theme or sub-plugin rather than editing core files.
- Assign Perfex CRM staff permissions so editors publish content without touching system settings.
- Run migrations cleanly through Perfex module activation and deactivation hooks.
2. Public Routing vs. Protected CRM Endpoints
PolyCMS separates public marketing requests from staff and client portals at the router layer. Requests to /admin or /clients hit standard Perfex authentication, while public slugs serve cached views for Managing Pages in PolyCMS and blog hubs. Storefront routes inherit the shared database layer covered in E-Commerce SEO & GEO in Perfex CRM: PolyStore Variant URLs, Sitemaps & Schema.
- Reserve Perfex slugs such as
admin,clients,authentication, andapiwhen naming pages. - Serve page caching strictly to anonymous visitors while bypassing cache for CRM sessions.
- Scope frontend CSS and JS inside theme bundles so admin Bootstrap styles stay isolated.
3. Themes, Bundled Plugins, and Hook Extensibility
PolyCMS delegates visual presentation to themes and adds optional features like sitemaps, sliders, or maintenance gates through modular sub-plugins. Developers register custom meta tags, shortcodes, and filters via deterministic hook priorities.
- Disable unused bundled plugins under PolyCMS > Plugins to keep hook execution lean.
- Escape dynamic template variables with CodeIgniter security helpers before rendering views.
- Back up
modules/polycms/uploads alongside SQL dumps before major Perfex upgrades.
Common Pitfalls and Quick Fixes
- Public homepage redirects to /admin/authentication: Public Homepage override is disabled. Turn on frontend homepage routing in PolyCMS General Settings.
- 404 errors on new page slugs: Route cache is stale or rewrites skip
index.php. Flush PolyCMS cache and check Apache/Nginx rewrites. - Permission denied for new editors: Staff role lacks PolyCMS capabilities. Grant View, Create, and Edit access under Setup > Roles.
Frequently Asked Questions
Does installing PolyCMS modify Perfex CRM core files or database tables?
No. PolyCMS runs strictly as a self-contained Perfex CRM module inside the modules/polycms/ folder and persists pages, posts, menus, widgets, and configuration inside dedicated prefixed tables. Core Perfex CRM controllers, views, and tables storing leads, clients, contracts, and invoices remain completely untouched.
Can PolyCMS and Perfex CRM share the same domain without route conflicts?
Yes. PolyCMS evaluates public routes alongside reserved Perfex CRM system prefixes, allowing your public homepage, blog, landing pages, and online storefront to run cleanly at the root domain while /admin and /clients continue serving authenticated staff and customer portals without route collisions.
How does PolyCMS avoid slowing down internal Perfex CRM dashboards?
Frontend theme templates, public widget queries, and slider or analytics assets execute exclusively on public CMS requests. Internal Perfex CRM staff routes skip frontend theme initialization and public asset rendering entirely, ensuring daily accounting, project tracking, and support workflows retain native speed.
How does PolyStore integrate with the PolyCMS architecture?
PolyStore operates as an e-commerce extension inside the same Perfex CRM database and PolyCMS rendering pipeline. Storefront product catalogs share your active theme design tokens while writing confirmed customer records, orders, and invoices directly into native Perfex CRM tables without external sync.

Leave a Reply