Hello, I am trying to get wf menu through ajax, but i have a little problem: wf menu doesn't worh as it should work. No active classes are added to items and so on.
My page template
...
<div class="ajax"></div>
<script>
$.post('/ajax',function(data){
$('.ajax').html(data);
});
</script>
...
In backend I've got resource with blank template(id 0) and alias ajax (resource is published), it contents:
so, i have snippet 'ajax':
return $modx->runSnippet("wayfinder",array('startId'=>'9','level'=>'3','rowTpl'=>'rowTpl','levelClass'=>'level','sortBy'=>'pagetitle'));
All work fine, but when I click menu item, wf doesn't add active class to it. I understand, that when I use '$modx->runSnippet', wf doesn't know active item. But I can't understand, how to make it work.
[ed. note: Qwarble last edited this post 14 years, 8 months ago.]