cms.page.beforeRenderPartial
        
        Provides an opportunity to manipulate the name of the partial being rendered before it renders
    
    
Example usage:
Event::listen('cms.page.beforeRenderPartial', function ((\Cms\Classes\Controller) $controller, (string) $partialName) {
    return Cms\Classes\Partial::loadCached($theme, 'custom-partial-name');
});
Or
$CmsController->bindEvent('page.beforeRenderPartial', function ((string) $partialName) {
    return Cms\Classes\Partial::loadCached($theme, 'custom-partial-name');
});
Usage
Triggers
| Class or file | Line | 
|---|---|
| Cms\Classes\Controller | 951 | 
    Copyright © 2025 Winter CMS