When I try the call without any custom templates it works.
-
MODX Staff
- 10,725 Posts
So far, the only time I can reproduce this is if I'm using a Chunk that is set as Static, and is associated with a Media Source. Don't use a media source to access your static chunks (you can use element_static_path Setting without a media source for relative paths, defaults to MODX_CORE_PATH . 'components/') and it works fine.
This seems to be a bug with how Wayfinder is processing things (it is circumventing normal parsing in some cases) that was only revealed by the bug fix implemented in the parser for 2.2.9. I am trying to track exactly why this is only happening with Static Chunks assigned to a Media Source...
Hi all,
i'am working with MODX Revolution 2.2.9 and wayfinder 2.3.3. on my local machine
Now i'am trying to make all my chunks, snippets, templates and tvs static, but when I do it with wayfinder chunks, submenus will not render. Than I found this thread and removed from my chunks associations with media sources.
All chunks(files) are saved in location like Jason Coward said now, in MODX_CORE_PATH . 'components/'...
Now i can see, that I have two copies of my chunks. One in folder, where I upload it and which I selected in manager - in "assets/chunks/"
and the second was created to "core/components" folder ("core/components/assets/chunks" exactly).
Frontend uses the file I selected in manager - "assets/chunks/", but
backend uses (in content field) the file in - "core/components/assets/chunks"
So maybe there is problem with filepath, when you don't use modia sources.
Should i change something in modx configuration? Tomorrow, I have to look at that.
But still, nothing changed with submenus, they are not rendering.
All other things with static files looks ok, but i didn't test it to much yet.
To have possibility to make all pieces static is realy fantastic idea.
Thanks you for all related informations to this problem and of course, to MODX team for great job, they are doing.
[ed. note: smahel last edited this post 13 years ago.]
Hi all,
great job bertoost, thank you, it saved my time.
l.smahel