Implementing add to favorite button in the collection template

Post author
M J

I know there is a custom code for adding the "add to favorite button" in the collection list (#106). Is there a way to do that in the collection template instead of the collection list?

https://www.memberstack.com/scripts/liking-saving-cms-items

Comments

1 comment

  • Comment author
    Julian Galluzzo

    Hey MJ!

    You indeed can - this script uses the slug (added via a dynamic attribute) to determine which item is being favorited, so you can do the exact same thing on the page itself!

    0

Please sign in to leave a comment.