Did this: https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies#dis-post-426635
Then it works on rootresourses, not on resources which are into a container.
On a site with 2.2.2pl it works with a container without any changes, on 2.2.6 it doesn't (yet!) somehow.
Anyone?
<div class="meta"> <ol class="wishlist"> [[!getResources? &tpl=`chk-wishlist` &resources=`[[!getCookieList]]`]] </ol>
[[!getCookieList:isnot=``:then=` <p>Some text...</p> [[!getResources? &tpl=`chk-tpl-cookielist` &resources=`[[!getCookieList]]` &includeTVs=`1` &tvPrefix=`` ]] `:else=` <p>The list are empty!</p> `]]
[[!getCookieList]]
<section> [[!getCookieList:isnot=``:then=` <h4><span class="colored">///</span> Your Favourites</h4> <hr> <ol class="wishlist"> [[!getResources? &tpl=`chk-wishlist` &resources=`[[!getCookieList]]` &includeTVs=`1` &tvPrefix=`` ]] `:else=` <h4><span class="colored">///</span> Your Favourites</h4> <hr> <p>You have not added any campsites to your Favourites yet!</p> `]] </ol> <hr style="margin-top:0px;clear:both;"> </section>
<li><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
on a resource there are cached, and with the changes from https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies#dis-post-426635 on several 226 installs without any problems.
I tried everything but with submaps/containers it doesn't work.
Cleared cache, deleted my cookies etc..
Checked on blank template, tried remove my htaccess www. rule, tried with and without system setting: session_cookie_path /, tried with basic calls, tried with Henrik Nielsen "hack".
The cookies being saved seems to be ok?
Still I can't get no list.
I gave up.
It only works on "root" resources, must be some settings which are not correct, can't seem to find any wrong settings.
on a resource there are cached, and with the changes from https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies#dis-post-426635 on several 226 installs without any problems.
[[+id]]
[[*id]]
[[!addToCookieList? &addText=`Add to favorite list` &removeText=`Remove from favorite list` &value=`[[+id]]`]]
[[!getCookieList]]
[[!addToCookieList? &addText=`Add to Favourites` &removeText=`Remove from Favourites` &value=`[[+id]]`]]
[[!getResources? &tpl=`chk-wishlist` &resources=`[[!getCookieList]]` &includeTVs=`1` &tvPrefix=`` ]]
<a href="[[~[[+id]]]]">[[+pagetitle]]</a>
[[!getCookieList]]