The Matrix Configuration system is the central control hub for all Matrix Framework features. It provides a single point of configuration for enabling or disabling features, adjusting performance settings, and managing debug behavior across the entire framework.
This file should be placed in the <head> section of your website.
<script type="text/javascript">
//<![CDATA[
// Matrix Configuration Settings
var MatrixConfig = {
features: {
matrixAdmin: true, // Matrix admin sliding menu
styleEditor: true, // Matrix Style editor
fluidModule: true, // Fluid features and jQuery UI components
variableModule:true, // Matrix variables button and popup
helperClassesModule: true, // Helper classes button and popup
moduleNavigator: true, // Module navigator button and popup
customLayout: true, // Show config classes in style editor
onePage: false, // One-page scroll navigation
multilingualPage: false, // Multilingual page navigation structure
megaMenu: false // Mega menu functionality
},
// === PERFORMANCE SETTINGS ===
performance: {
maxElements: 200, // Max elements to process at once
debounceDelay: 150, // Debounce delay in milliseconds
throttleDelay: 100 // Throttle delay in milliseconds
},
// === DEBUG SETTINGS ===
debugMode: false // Set to true to enable debug logging
};
//]]>
</script>
Be careful not to set all options to true, as some of them are not compatible with each other. For example, if you activate OnePage, then Multilingual Pages and MegaMenu should be deactivated.