<![CDATA[ Wayfinder slowness issue - My Forums]]> https://forums.modx.com/thread/?thread=39979 <![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-466371
As regards my client I did a better improvement with getcache snippet.

By the way I read some times ago this post http://modx.com/blog/2013/04/08/modx-revolution-keeps-pearl-drums-business-beating-on/
where they say they used a ajax solution to build the menu, it would be interesting to know something more...



]]>
tillilab May 15, 2013, 03:07 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-466371
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-466369 ThaClown May 15, 2013, 02:25 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-466369 <![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-462237 But I used a resource with a snippet call inside to update the chunk
(because of some limits of plugin interaction with the system).

Anyway it's not a clean solution: my customer needs to visit that page to update the menu...
also, the menu inside the chunk of course doesn't keep the "active" state.

I thought to build a menu in a separate way, maybe with a component, like other cms do, but I'm still studying it..]]>
tillilab Apr 09, 2013, 04:38 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-462237
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-462231
It is by far the biggest factor in slow MODX sites...]]>
ThaClown Apr 09, 2013, 03:54 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-462231
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-440538 My mistake smiley]]> dinpapa Oct 17, 2012, 10:15 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-440538 <![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-440471 sottwell Oct 17, 2012, 02:27 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=4#dis-post-440471 <![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-440380 I have the following two questions though:
1)When you say that it is better to implement this with a module,well,how can it be done this way?Could somebody post or write the necessary code?

2)This is best used when a snippet has to deal with a lot of document/resources,or can it be used with less resources?I mean,if there are any cons to this method when somebody has very few documents to deal with(let's say 100).]]>
dinpapa Oct 16, 2012, 03:58 PM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-440380
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-413494
a) create a chunk. Leave it empty. Name it whatever you want, e.g. testMenu

b) create a plugin. Enter this:
$myChunk = 'testMenu';
$params['startId'] = '0';
$params['level'] = '4';
// additional Wayfinder params here

$html = $modx->runSnippet('Wayfinder', $params);
$chunk = $modx->getObject('modChunk', array('name' => $myChunk));
if (!empty($chunk)) {
    $chunk->set('snippet' => $html);
    $chunk->save();
}

c) Check the system event OnDocFormSave + save the plugin.

d) Change your template: Replace your Wayfinder call with your chunk:
[[$testMenu]]

]]>
okyanet Feb 26, 2012, 03:28 AM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-413494
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-396895
Is there anyway you could please create this plugin to work with 2.1.3.

If you could that would be f*#ing awsome.

I have resorted to leaving the wayfinder call on a hidden resource then copying and pasting the menu into a chunk so its quick.

Please help!!]]>
minikoopa_modx Oct 14, 2011, 01:21 PM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-396895
<![CDATA[Re: Wayfinder slowness issue]]> https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-231365
In some cases, it’s standard practise to use <body class="foo"> or <body id="foo">, to alter the appearance of certain pages / sections / menus etc. via CSS.

Maybe the JS code of your accordion menu can be altered so it would first query the body id/class, and subsequently inject the necessary <li class="active... whatever"> bit. You could obviously work with document ids, but since you can’t have numbers as CSS class- or DIV-names, you’ll have to construct something with prefix_id.

There’s a Wayfinder parameter / method to include ids somewhere, you’ll find it in the manual I’m sure. That could serve as a "glue" for JS to check the body-id against the menu-li-id.

That’s really just a vague first idea... it’s almost 1AM here and my mind is really not that fresh right now.
]]>
ganeshXL Jul 05, 2011, 06:00 PM https://forums.modx.com/thread/39979/wayfinder-slowness-issue?page=3#dis-post-231365