save/show favorited entries #5289
Unanswered
pathly-dev
asked this question in
Q&A
Replies: 1 comment
-
If you are using local storage then your if JSON statement should be in script...
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm not sure, if there is any statamic solution to save the users favorite entries?
I have a blog and the user can save entries as their favorites.
I haven't found anything so far, so I save the favorited id's in an array to the localstorage.
But now I'm not sure how to show them respectively filter the collection. I have some other filters that can be set through the frontend and there I filter that like
but for the localstorage I'm not sure how to put these in the brackets since it seems like I cannot use javascript in there
Beta Was this translation helpful? Give feedback.
All reactions