Heyo!
As soon as I view an entry that currently is *not* a favorite, it gets marked as a favorite.
Entries marked as favorites, stay favorites.
My code is setup that I have an add/delete {segment_3} on my urls to add/remove favorite.
Viewing /video/14, I have a link that either is /video/14/add or /video/14/delete.
That’s the only way I know of that would set the favorite status.
But, as I mentioned, as soon as I view something *not* a favorite, it gets auto marked favorite, and my
“add to favorites” link on the archive page, changes to a “remove from favorites” on the single entry page.
Any ideas?
{if segment_3=="add" OR segment_3=="delete" }
<h3>{exp:favorites:save}</h3>
{/if}
....
{exp:favorites:saved entry_id="{entry_id}"}
{if saved}
<a href="{path="video"}{entry_id}/delete">Remove Favorite</a>
{/if}
{if not_saved}
<a href="[removed]void(0)" onclick="toggleDisplay('tagform')">Add to Favorites</a>
{/if}
{/exp:favorites:saved}
