thanks! it works fine
You had several unclosed braces. One of the problems with Plugins is that if there is any typo or syntax error it just does nothing. You’ve also got a fair amount of unnecessary code since you don’t have to identify the event or do any decision making in the plugin (since the plugin is only triggered by one event). Try this:
<?php //Plugin attached to OnManagerWelcomeHome System Event $e = &$modx->Event; $output =''; // set generic params $rowTpl = 'homeCustom'; $params['level'] = '1'; $params['ignoreHidden'] = 'TRUE'; // set params for Current Properties and call Wayfinder $outerTpl = '@CODE: <h3 class="h3pad">Current Properties</h3><ul class="ulpad">[+wf.wrapper+]</ul>'; $params['startId'] = '4'; $params['rowTpl'] = $rowTpl; $params['outerTpl'] = $outerTpl; $output = $modx->runSnippet('Wayfinder', $params); $output .= '<hr />'; // set params for Pending Properties and call Wayfinder $outerTpl = '@CODE: <h3 class="h3pad">Pending Properties</h3><ul class="ulpad">[+wf.wrapper+]</ul>'; $params['startId'] = '34'; $params['rowTpl'] = $rowTpl; $params['outerTpl'] = $outerTpl; $output .= $modx->runSnippet('Wayfinder', $params); $output .= '<hr />'; // set params for Sold Properties and call Wayfinder $outerTpl = '@CODE: <h3 class="h3pad">Sold Properties</h3><ul class="ulpad">[+wf.wrapper+]</ul>'; $params['startId'] = '27'; $params['rowTpl'] = $rowTpl; $params['outerTpl'] = $outerTpl; $output .= $modx->runSnippet('Wayfinder', $params); $output .= '<hr />'; $e->output($output); return;
Make sure the plugin is tied to the OnManagerWelcomeHomeEvent.
I had to add "//" in front of the <?php in the beginnin for it to work but it works perfectly
