Happy new year to all!
I have an issue with a symlink-scenario, maybe someone can assist me. On my customers website the resource-structure is as follows:
- Speakers [3] (speakers.html - always symlinked to the latest year = 2019)
--- 2018 [10] (speakers/2018/)
--- 2019 [49] (speakers/2019/)
Each year contains several resources/speakers like
- /speakers/2018/speakername1.html
- /speakers/2018/speakername2.html
- /speakers/2018/speakername3.html
- /speakers/2019/speakername1.html
- /speakers/2019/speakername2.html
- /speakers/2019/speakername3.html
- ...
The template contains a getResources-call like follows, to show whether a list of speakers, or a "coming soon"-chunk :
[[getResources:ifempty=`[[$comingsoon]]`?
&parents=`[[*id]]`
&context=`web`
&depth=`0`
&hideContainers=`1`
&showHidden=`1`
&limit=`0`
&sortby=`menuindex`
&sortdir=`ASC`
&includeTVs=`1`
&processTVs=`1`
&tpl=`tpl_item_speaker`
]]
Now my issue happens as follows
- I clear MODX-cache manually or by editing/saving a resource
- I call url /speakers.html (symlinked to speakers/2019/) but it will show the "coming soon"-chunk, even when resources exist and should be listed by getResources
To overcome this issue I am forced to
- call /speakers/2019/ always first after cache has been cleared by any event or action
- then /speakers.html will show the resources-list of /speakers/2019/ like it should
I am not sure how to solve this issue, can someone maybe give me a hint?
Cheers!
[ed. note: d.helfensteller last edited this post 5 years, 9 months ago.]